summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwidgetbackingstore.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/kernel/qwidgetbackingstore.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/kernel/qwidgetbackingstore.cpp')
-rw-r--r--src/widgets/kernel/qwidgetbackingstore.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/widgets/kernel/qwidgetbackingstore.cpp b/src/widgets/kernel/qwidgetbackingstore.cpp
index 2f4bcd6370..57564ce477 100644
--- a/src/widgets/kernel/qwidgetbackingstore.cpp
+++ b/src/widgets/kernel/qwidgetbackingstore.cpp
@@ -48,7 +48,9 @@
#include <QtGui/qevent.h>
#include <QtWidgets/qapplication.h>
#include <QtGui/qpaintengine.h>
+#if QT_CONFIG(graphicsview)
#include <QtWidgets/qgraphicsproxywidget.h>
+#endif
#include <private/qwidget_p.h>
#include <private/qapplication_p.h>
@@ -823,7 +825,7 @@ void QWidgetPrivate::moveRect(const QRect &rect, int dx, int dy)
const bool nativeWithTextureChild = textureChildSeen && q->internalWinId();
bool accelerateMove = accelEnv && isOpaque && !nativeWithTextureChild
-#ifndef QT_NO_GRAPHICSVIEW
+#if QT_CONFIG(graphicsview)
// No accelerate move for proxy widgets.
&& !tlw->d_func()->extra->proxyWidget
#endif
@@ -1239,7 +1241,7 @@ void QWidgetBackingStore::doSync()
: wd->dirty);
toClean += widgetDirty;
-#ifndef QT_NO_GRAPHICSVIEW
+#if QT_CONFIG(graphicsview)
if (tlw->d_func()->extra->proxyWidget) {
resetWidget(w);
continue;
@@ -1324,7 +1326,7 @@ void QWidgetBackingStore::doSync()
dirtyRenderToTextureWidgets.clear();
#endif
-#ifndef QT_NO_GRAPHICSVIEW
+#if QT_CONFIG(graphicsview)
if (tlw->d_func()->extra->proxyWidget) {
updateStaticContentsSize();
dirty = QRegion();