diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2010-02-22 18:33:13 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2010-02-23 10:09:48 (GMT) |
commit | 53aaca8bc08150db3b446fbb70de3271fe5ea398 (patch) | |
tree | 7747cc5d2835cf4aeb178321a63b66d62da28c61 | |
parent | 283b6815586a87e458732534bc3c9c76b38ba49f (diff) | |
download | Qt-53aaca8bc08150db3b446fbb70de3271fe5ea398.zip Qt-53aaca8bc08150db3b446fbb70de3271fe5ea398.tar.gz Qt-53aaca8bc08150db3b446fbb70de3271fe5ea398.tar.bz2 |
Fixed cosmetic glitch in QTabBar label's rendering
This seems to have appeared after commit 3baf7b981a8f40ed.
Reviewed-by: Olivier
-rw-r--r-- | src/gui/styles/qmacstyle_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm index 40ee31d..116b03e 100644 --- a/src/gui/styles/qmacstyle_mac.mm +++ b/src/gui/styles/qmacstyle_mac.mm @@ -3760,7 +3760,7 @@ void QMacStyle::drawControl(ControlElement ce, const QStyleOption *opt, QPainter QPalette np = tab->palette; np.setColor(QPalette::WindowText, QColor(255, 255, 255, 75)); QRect nr = subElementRect(SE_TabBarTabText, opt, w); - nr.moveTop(+1); + nr.moveTop(-1); int alignment = Qt::AlignCenter | Qt::TextShowMnemonic | Qt::TextHideMnemonic; proxy()->drawItemText(p, nr, alignment, np, tab->state & State_Enabled, tab->text, QPalette::WindowText); |