[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_2_BRANCH: kdelibs/kdeui
From:       Pascal Létourneau <pletourn () globetrotter ! net>
Date:       2004-04-30 19:11:06
Message-ID: 20040430191106.61D409A6A () office ! kde ! org
[Download RAW message or body]

CVS commit by pletourn: 

Backport of an old patch:
Correct size for the title
CCMAIL:77277-done@bugs.kde.org


  M +3 -1      kpopupmenu.cpp   1.37.2.1


--- kdelibs/kdeui/kpopupmenu.cpp  #1.37:1.37.2.1
@@ -75,5 +75,7 @@ void KPopupTitle::setIcon( const QPixmap
 void KPopupTitle::calcSize()
 {
-    int w = miniicon.width()+fontMetrics().width(titleStr);
+    QFont f = font();
+    f.setBold(true);
+    int w = miniicon.width()+QFontMetrics(f).width(titleStr);
     int h = QMAX( fontMetrics().height(), miniicon.height() );
     setMinimumSize( w+16, h+8 );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic