diff options
Diffstat (limited to 'src/widgets/kernel/qwidgetbackingstore.cpp')
-rw-r--r-- | src/widgets/kernel/qwidgetbackingstore.cpp | 8 |
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(); |