From 075634945d5a9ba45fe7628c533977e6909f446d Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 3 May 2011 14:22:36 +0200 Subject: remove the graphicssystem code paths. QPA's platform integration layer replaces the graphics system now. --- src/gui/image/qpixmap_qpa.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gui/image/qpixmap_qpa.cpp') diff --git a/src/gui/image/qpixmap_qpa.cpp b/src/gui/image/qpixmap_qpa.cpp index 61be2169d0..093b9b6a67 100644 --- a/src/gui/image/qpixmap_qpa.cpp +++ b/src/gui/image/qpixmap_qpa.cpp @@ -40,10 +40,9 @@ ****************************************************************************/ #include -#include -#include +#include QPixmap QPixmap::grabWindow(WId window, int x, int y, int w, int h) { - return QApplicationPrivate::platformIntegration()->grabWindow(window, x, y, w, h); + return QGuiApplicationPrivate::platformIntegration()->grabWindow(window, x, y, w, h); } -- cgit v1.2.3 From 5a919255146e15da8a99262a155a9a4b75e6cfdc Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Tue, 3 May 2011 20:20:44 +0200 Subject: QGuiApplication is not QPA specific Rename files to reflect that QGuiApplication is going to be used everywhere. --- src/gui/image/qpixmap_qpa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/image/qpixmap_qpa.cpp') diff --git a/src/gui/image/qpixmap_qpa.cpp b/src/gui/image/qpixmap_qpa.cpp index 093b9b6a67..da301baa19 100644 --- a/src/gui/image/qpixmap_qpa.cpp +++ b/src/gui/image/qpixmap_qpa.cpp @@ -40,7 +40,7 @@ ****************************************************************************/ #include -#include +#include QPixmap QPixmap::grabWindow(WId window, int x, int y, int w, int h) { -- cgit v1.2.3 From c3da77798b876716ce038a30e9aa8517ec158c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Thu, 21 Jul 2011 13:50:28 +0200 Subject: Added workable QScreen API on top of QPlatformScreen. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QPlatformIntegration::screens() no longer has to be implemented, implementations should call QPlatformIntegration::screenAdded() for each screen instead. This is for being able to support adding screens at run-time later on, by connecting it to a signal in QGuiApplication. The QGuiGLContext API has changed a bit, by not sending in all the parameters in the constructor but instead having a create() function. The createPlatformGLContext() factory in QPlatformIntegration takes a QGuiGLContext * instead of a QSurfaceFormat and a share context, similar to how the window and backing store factory functions work. The XCB plugin has experimental support for connecting to multiple X displays simultaneously, creating one or more QScreen for each. Change-Id: I248a22a4fd3481280710110272c04a30a8021e8f Reviewed-on: http://codereview.qt.nokia.com/2103 Reviewed-by: Qt Sanity Bot Reviewed-by: Jørgen Lind --- src/gui/image/qpixmap_qpa.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/image/qpixmap_qpa.cpp') diff --git a/src/gui/image/qpixmap_qpa.cpp b/src/gui/image/qpixmap_qpa.cpp index 724647f89d..9c69ddef7e 100644 --- a/src/gui/image/qpixmap_qpa.cpp +++ b/src/gui/image/qpixmap_qpa.cpp @@ -40,9 +40,10 @@ ****************************************************************************/ #include +#include #include QPixmap QPixmap::grabWindow(WId window, int x, int y, int w, int h) { - return QGuiApplicationPrivate::platformIntegration()->grabWindow(window, x, y, w, h); + return QGuiApplication::primaryScreen()->handle()->grabWindow(window, x, y, w, h); } -- cgit v1.2.3