Moving handler for tabWidthChanged to editor class. Fixed coding style error. Used QFontMetrics to determine tab width in pixels.