summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorJens Bache-Wiig <jbache@trolltech.com>2010-02-23 16:16:25 (GMT)
committerJens Bache-Wiig <jbache@trolltech.com>2010-02-23 16:16:25 (GMT)
commit5c25cbaf75ab4d4f260b6da445980dec591aca92 (patch)
treec447042af8e226250aca5ca62d466fab91f4d224 /src/gui/styles
parentb8fa411051eda208dfd0e0c658710c77a04ce998 (diff)
downloadQt-5c25cbaf75ab4d4f260b6da445980dec591aca92.zip
Qt-5c25cbaf75ab4d4f260b6da445980dec591aca92.tar.gz
Qt-5c25cbaf75ab4d4f260b6da445980dec591aca92.tar.bz2
Fix documentmode tab label text on Mac OSX
The problem was that the text highlight is drawn two pixels too low when document mode tabs are used. Task-number: QTBUG-8461 Reviewed-by: prasanth
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qmacstyle_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm
index 78074c7..5bd939f 100644
--- a/src/gui/styles/qmacstyle_mac.mm
+++ b/src/gui/styles/qmacstyle_mac.mm
@@ -3749,7 +3749,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);