summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorten Sorvig <morten.sorvig@nokia.com>2012-03-30 09:59:12 +0200
committerQt by Nokia <qt-info@nokia.com>2012-03-30 12:20:39 +0200
commit4bafdc940b5026b85ac6099ab441b1b377c5e53a (patch)
tree5020ddbd0b59f294905c7e7b986db68392a68ae1 /src
parent5211d1786485bc42ca2b5ab4266883f6cb187463 (diff)
Cocoa: Fix combo box flicker on show.
Replace Q_WS_MAC -> Q_OS_MAC, restore Qt 4 behavior that does not disable updates on first show. Change-Id: Ibc7f58add2a44c95879bd3c4772cea36dd7905fa Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/widgets/qcombobox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/widgets/qcombobox.cpp b/src/widgets/widgets/qcombobox.cpp
index dc1e0dbfab..bea4061076 100644
--- a/src/widgets/widgets/qcombobox.cpp
+++ b/src/widgets/widgets/qcombobox.cpp
@@ -2468,7 +2468,7 @@ void QComboBox::showPopup()
}
container->setGeometry(listRect);
-#ifndef Q_WS_MAC
+#ifndef Q_OS_MAC
const bool updatesEnabled = container->updatesEnabled();
#endif
@@ -2484,7 +2484,7 @@ void QComboBox::showPopup()
// If updates are disabled at this point we'll miss our chance at painting the popup
// menu before it's shown, causing flicker since the window then displays the standard gray
// background.
-#ifndef Q_WS_MAC
+#ifndef Q_OS_MAC
container->setUpdatesEnabled(false);
#endif
@@ -2498,7 +2498,7 @@ void QComboBox::showPopup()
? QAbstractItemView::PositionAtCenter
: QAbstractItemView::EnsureVisible);
-#ifndef Q_WS_MAC
+#ifndef Q_OS_MAC
container->setUpdatesEnabled(updatesEnabled);
#endif