wilder-work
Montel Laurent 13 years ago
parent 895d9b6fd1
commit c75b87b9cd
  1. 2
      kmsystemtray.cpp

@ -197,7 +197,7 @@ void KMSystemTray::updateCount()
// number doesn't fit into the available space
float countFontSize = countFont.pointSizeF();
QFontMetrics qfm( countFont );
int width = qfm.width( countString );
const int width = qfm.width( countString );
if ( width > (overlaySize - 2) ) {
countFontSize *= float( overlaySize - 2 ) / float( width );
countFont.setPointSizeF( countFontSize );

Loading…
Cancel
Save