summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qdesktopwidget_qpa_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/qdesktopwidget_qpa_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/qdesktopwidget_qpa_p.h')
-rw-r--r--src/gui/kernel/qdesktopwidget_qpa_p.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/kernel/qdesktopwidget_qpa_p.h b/src/gui/kernel/qdesktopwidget_qpa_p.h
index 8bed09d..47ccca2 100644
--- a/src/gui/kernel/qdesktopwidget_qpa_p.h
+++ b/src/gui/kernel/qdesktopwidget_qpa_p.h
@@ -59,7 +59,13 @@
class QDesktopScreenWidget : public QWidget {
Q_OBJECT
public:
- QDesktopScreenWidget(int screenNumber = -1) { setWindowFlags(Qt::Desktop); setVisible(false); d_func()->screenNumber = screenNumber; }
+ QDesktopScreenWidget(int screenNumber = -1)
+ {
+ setWindowFlags(Qt::Desktop);
+ setVisible(false);
+ QTLWExtra *topData = d_func()->topData();
+ topData->screenIndex = screenNumber;
+ }
};
class QDesktopWidgetPrivate : public QWidgetPrivate {