Created
December 5, 2012 11:36
-
-
Save zenoalbisser/4214913 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/widgets/styles/qmacstyle_mac.mm b/src/widgets/styles/qmacstyle_mac.mm | |
index 3cfe5cb..65a05c0 100644 | |
--- a/src/widgets/styles/qmacstyle_mac.mm | |
+++ b/src/widgets/styles/qmacstyle_mac.mm | |
@@ -2830,6 +2830,12 @@ int QMacStyle::styleHint(StyleHint sh, const QStyleOption *opt, const QWidget *w | |
case SH_DockWidget_ButtonsHaveFrame: | |
ret = false; | |
break; | |
+ case SH_ScrollBar_Transient: | |
+ ret = QSysInfo::MacintoshVersion >= QSysInfo::MV_10_7; | |
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 | |
+ ret &= [NSScroller preferredScrollerStyle] == NSScrollerStyleOverlay; | |
+#endif | |
+ break; | |
default: | |
ret = QCommonStyle::styleHint(sh, opt, w, hret); | |
break; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment