summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorLars Knoll <[email protected]>2011-05-03 14:22:36 +0200
committerLars Knoll <[email protected]>2011-05-03 14:23:39 +0200
commit075634945d5a9ba45fe7628c533977e6909f446d (patch)
tree62747ff9fd50bc2d17d99e5cd9b20c1adee03045 /src/gui/kernel/qwidget.cpp
parent86f20c89af906ecd58a4da74f82bd895ec8392e8 (diff)
remove the graphicssystem code paths.
QPA's platform integration layer replaces the graphics system now.
Diffstat (limited to 'src/gui/kernel/qwidget.cpp')
-rw-r--r--src/gui/kernel/qwidget.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/gui/kernel/qwidget.cpp b/src/gui/kernel/qwidget.cpp
index f6c95719c27..e1f9ee70ce9 100644
--- a/src/gui/kernel/qwidget.cpp
+++ b/src/gui/kernel/qwidget.cpp
@@ -121,7 +121,6 @@
#include "private/qabstractscrollarea_p.h"
#include "private/qevent_p.h"
-#include "private/qgraphicssystem_p.h"
#include "private/qgesturemanager_p.h"
#ifdef QT_KEYPAD_NAVIGATION
@@ -161,11 +160,7 @@ static inline bool qRectIntersects(const QRect &r1, const QRect &r2)
static inline bool hasBackingStoreSupport()
{
-#ifdef Q_WS_MAC
- return QApplicationPrivate::graphicsSystem() != 0;
-#else
return true;
-#endif
}
#ifdef Q_WS_MAC
@@ -375,10 +370,8 @@ QWindowSurface *QWidgetPrivate::createDefaultWindowSurface()
} else
#endif
{
- if (QApplicationPrivate::graphicsSystem())
- surface = QApplicationPrivate::graphicsSystem()->createWindowSurface(q->windowHandle());
- else
- surface = createDefaultWindowSurface_sys();
+ QWindow *win = topData()->window;
+ surface = QGuiApplicationPrivate::platformIntegration()->createWindowSurface(win, win->winId());
}
return surface;