diff options
author | Morten Johan Sorvig <morten.sorvig@nokia.com> | 2012-05-16 12:22:04 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2012-05-21 10:42:49 +0200 |
commit | 5642b89acd1877afdfdae21ea3aac66805d091a5 (patch) | |
tree | 6fec2022f4da985157808930e92d650f23d69b47 | |
parent | bc8aec8085fff0be66f1b8f83097ab69ad78264b (diff) | |
download | qtquickcontrols-5642b89acd1877afdfdae21ea3aac66805d091a5.tar.gz |
Remove Mac visibility workaround on Qt 5.
WA_DontShowOnScreen now works the same way on all
platforms.
Change-Id: If7c5416e4f38b4c5ac955c861aad5b1ee55aef05
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
-rw-r--r-- | src/qstyleitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qstyleitem.cpp b/src/qstyleitem.cpp index ff608ce3..4d4ee4ee 100644 --- a/src/qstyleitem.cpp +++ b/src/qstyleitem.cpp @@ -884,7 +884,7 @@ void QStyleItem::setElementType(const QString &str) m_dummywidget->setAttribute(Qt::WA_QuitOnClose, false); // dont keep app open m_dummywidget->setAttribute(Qt::WA_LayoutUsesWidgetRect); m_dummywidget->winId(); -#ifdef Q_OS_MAC +#ifdef Q_WS_MAC // WS_MAC: Qt 4-only workaround m_dummywidget->setGeometry(-1000, 0, 10,10); m_dummywidget->setVisible(visible); // Mac require us to set the visibility before this #endif |