[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/artwork/Oxygen/style/code
From: Daniel Molkentin <molkentin () kde ! org>
Date: 2007-06-03 7:51:02
Message-ID: 1180857062.014771.32522.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 670964 by danimo:
next part from the "that-annoyed-me-when-demoing-on-linuxtag": Properly draw \
accelerator on titles of QDockWidget
M +3 -2 drawcontrol.cpp
--- trunk/playground/artwork/Oxygen/style/code/drawcontrol.cpp #670963:670964
@@ -226,8 +226,9 @@
x3 -= 18;
int x2 = x3;
if (!dwOpt->title.isEmpty()) {
- drawItemText(painter, RECT, Qt::AlignCenter, PAL, isEnabled, \
dwOpt->title, QPalette::WindowText);
- textRect = painter->boundingRect ( RECT, Qt::AlignCenter, dwOpt->title \
); + int itemtextopts = Qt::AlignCenter | Qt::TextShowMnemonic;
+ drawItemText(painter, RECT, itemtextopts, PAL, isEnabled, dwOpt->title, \
QPalette::WindowText); + textRect = painter->boundingRect ( RECT, \
itemtextopts, dwOpt->title ); x2 = textRect.x()-8;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic