summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxscreen.h
diff options
context:
space:
mode:
authorBernd Weimer <bweimer@blackberry.com>2014-06-18 11:23:05 +0200
committerBernd Weimer <bweimer@blackberry.com>2014-07-07 09:36:12 +0200
commitd8103d0e629f1d8f6c2b9d5b0dcc95b6ff20b99d (patch)
tree7cbf458ee0c9708618a30905bc7678a401a3edec /src/plugins/platforms/qnx/qqnxscreen.h
parentd49f7168aba2770cc39d463adeeffc4e9635f4dc (diff)
QNX: Override QPlatformScreen::grabWindow
The grabWindow API basically should return a screenshot at the window location. On QNX only the SCREEN_DISPLAY_MANAGER_CONTEXT can read from the screen which will require root privileges. At least this will fix some QWidget auto tests that rely on this API. Change-Id: I350233173d3aecd376f48af9f650606a5cce6205 Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxscreen.h')
-rw-r--r--src/plugins/platforms/qnx/qqnxscreen.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/qnx/qqnxscreen.h b/src/plugins/platforms/qnx/qqnxscreen.h
index 6b2281f7b9..a8a18c6240 100644
--- a/src/plugins/platforms/qnx/qqnxscreen.h
+++ b/src/plugins/platforms/qnx/qqnxscreen.h
@@ -62,6 +62,8 @@ public:
QQnxScreen(screen_context_t context, screen_display_t display, bool primaryScreen);
~QQnxScreen();
+ QPixmap grabWindow(WId window, int x, int y, int width, int height) const;
+
QRect geometry() const { return m_currentGeometry; }
QRect availableGeometry() const;
int depth() const;
@@ -86,7 +88,7 @@ public:
screen_context_t nativeContext() const { return m_screenContext; }
const char *windowGroupName() const { return m_rootWindow ? m_rootWindow->groupName().constData() : 0; }
- QQnxWindow *findWindow(screen_window_t windowHandle);
+ QQnxWindow *findWindow(screen_window_t windowHandle) const;
/* Window hierarchy management */
void addWindow(QQnxWindow *child);