summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qmenu.cpp
diff options
context:
space:
mode:
authorStephan Binner <stephan.binner@basyskom.com>2017-07-23 11:31:32 +0200
committerStephan Binner <stephan.binner@basyskom.com>2017-08-15 05:10:10 +0000
commite6fad35155a25a932386ad6f8421efd74404ac7f (patch)
tree9bb2e2c71d5b2ea305937cb5046b6e26141bab18 /src/widgets/widgets/qmenu.cpp
parent306071e50eac8290d234caab90985ddf705a5fc6 (diff)
Convert features.graphicsview to QT_[REQUIRE_]CONFIG
Change-Id: I1083097802772624e5d414678b4612308683a56f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/widgets/widgets/qmenu.cpp')
-rw-r--r--src/widgets/widgets/qmenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/widgets/qmenu.cpp b/src/widgets/widgets/qmenu.cpp
index 4848eba7ec..46525b6124 100644
--- a/src/widgets/widgets/qmenu.cpp
+++ b/src/widgets/widgets/qmenu.cpp
@@ -2319,7 +2319,7 @@ void QMenu::popup(const QPoint &p, QAction *atAction)
const bool actionListChanged = d->itemsDirty;
QRect screen;
-#ifndef QT_NO_GRAPHICSVIEW
+#if QT_CONFIG(graphicsview)
bool isEmbedded = !bypassGraphicsProxyWidget(this) && d->nearestGraphicsProxyWidget(this);
if (isEmbedded)
screen = d->popupGeometry(this);
@@ -3589,7 +3589,7 @@ void QMenu::internalDelayedPopup()
d->activeMenu->d_func()->causedPopup.action = d->currentAction;
QRect screen;
-#ifndef QT_NO_GRAPHICSVIEW
+#if QT_CONFIG(graphicsview)
bool isEmbedded = !bypassGraphicsProxyWidget(this) && d->nearestGraphicsProxyWidget(this);
if (isEmbedded)
screen = d->popupGeometry(this);