diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-11-25 08:44:32 (GMT) |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2009-11-25 11:38:41 (GMT) |
commit | 41f58d51cec171ccfa132dad2d863340d3ed2db4 (patch) | |
tree | 0c7dd37249df712bdef1faa2a34cd9740972bc4a /src | |
parent | b463bd91f5e19ec597990ea736ee51a4baaca338 (diff) | |
download | Qt-41f58d51cec171ccfa132dad2d863340d3ed2db4.zip Qt-41f58d51cec171ccfa132dad2d863340d3ed2db4.tar.gz Qt-41f58d51cec171ccfa132dad2d863340d3ed2db4.tar.bz2 |
Offset in MDI subwindow bar buttons under Mac OS 10.6
Task-number: QTBUG-5830
Reviewed-by: Richard
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/styles/qmacstyle_mac.mm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/styles/qmacstyle_mac.mm b/src/gui/styles/qmacstyle_mac.mm index 51c2a96..4075cf7 100644 --- a/src/gui/styles/qmacstyle_mac.mm +++ b/src/gui/styles/qmacstyle_mac.mm @@ -4843,9 +4843,11 @@ void QMacStyle::drawComplexControl(ComplexControl cc, const QStyleOptionComplex uint sc = SC_TitleBarMinButton; ThemeTitleBarWidget tbw = kThemeWidgetCollapseBox; bool active = titlebar->state & State_Active; - int border = 2; - titleBarRect.origin.x += border; - titleBarRect.origin.y -= border; + if (qMacVersion() < QSysInfo::MV_10_6) { + int border = 2; + titleBarRect.origin.x += border; + titleBarRect.origin.y -= border; + } while (sc <= SC_TitleBarCloseButton) { if (sc & titlebar->subControls) { |