summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_p.h
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-12-08 12:09:36 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2011-01-04 14:18:20 (GMT)
commitf6c5b16768d45f196bab0a2766d4be6027991e08 (patch)
tree610b9b3de9981916b4dc1abef43390caaed1616f /src/gui/kernel/qwidget_p.h
parent3753b15e88f2c8220b887f27be79491c4135a291 (diff)
downloadQt-f6c5b16768d45f196bab0a2766d4be6027991e08.zip
Qt-f6c5b16768d45f196bab0a2766d4be6027991e08.tar.gz
Qt-f6c5b16768d45f196bab0a2766d4be6027991e08.tar.bz2
Add function QPlatformScreen::platformScreenForWidget
This so there is some logical connection between what screen a widget belongs to
Diffstat (limited to 'src/gui/kernel/qwidget_p.h')
-rw-r--r--src/gui/kernel/qwidget_p.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/kernel/qwidget_p.h b/src/gui/kernel/qwidget_p.h
index 6b85391..a0f0ec8 100644
--- a/src/gui/kernel/qwidget_p.h
+++ b/src/gui/kernel/qwidget_p.h
@@ -233,6 +233,7 @@ struct QTLWExtra {
#elif defined(Q_WS_QPA)
QPlatformWindow *platformWindow;
QPlatformWindowFormat platformWindowFormat;
+ quint32 screenIndex; // index in qplatformscreenlist
#endif
};
@@ -885,11 +886,9 @@ public:
void updateCursor() const;
#endif
QScreen* getScreen() const;
-#elif defined(Q_WS_QPA)
+#elif defined(Q_WS_QPA) // <--------------------------------------------------------- QPA
void setMaxWindowState_helper();
void setFullScreenSize_helper();
-
- int screenNumber; // screen the widget should be displayed on
#ifndef QT_NO_CURSOR
void updateCursor() const;
#endif