[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 77277] KPopupTitle disregards being painted with a bold font
From: Pascal "Létourneau" <pletourn () globetrotter ! net>
Date: 2004-04-30 19:11:18
Message-ID: 20040430191118.10866.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=77277
pletourn globetrotter net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From pletourn globetrotter net 2004-04-30 21:11 -------
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