diff options
author | Shawn Rutledge <shawn.rutledge@nokia.com> | 2012-09-05 13:44:44 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-18 14:12:27 +0200 |
commit | beab941e1fc11c8fe0914c6a3207ba029eb96112 (patch) | |
tree | d8e7a2a56130edbfeef1a6790013815fe99106e5 /src/gui/kernel/qscreen.cpp | |
parent | 5ea896fbc63593f424a7dfbb11387599c0025c74 (diff) |
X11 (xcb) support for QScreen-per-output and runtime changes
QScreen has notifiers for its properties, but they were not being
emitted when one changes the resolution or arrangement of individual
outputs, e.g. via xrandr. Also there should be one QScreen per
"output", e.g. laptop LCD + external monitor means 2 QScreens
which will be siblings, rather than just 1 QScreen to represent
the whole desktop.
Change-Id: Ia61bbc5e6a3506f813ab11f87c03d14cf7f4ce85
Reviewed-by: Uli Schlachter <psychon@znc.in>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/gui/kernel/qscreen.cpp')
-rw-r--r-- | src/gui/kernel/qscreen.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/kernel/qscreen.cpp b/src/gui/kernel/qscreen.cpp index 7a3854be81..13740e5c5f 100644 --- a/src/gui/kernel/qscreen.cpp +++ b/src/gui/kernel/qscreen.cpp @@ -286,6 +286,9 @@ QList<QScreen *> QScreen::virtualSiblings() const } /*! + \property QScreen::virtualSize + \brief the pixel size of the virtual desktop to which this screen belongs + Returns the pixel size of the virtual desktop corresponding to this screen. This is the combined size of the virtual siblings' individual geometries. @@ -298,6 +301,9 @@ QSize QScreen::virtualSize() const } /*! + \property QScreen::virtualGeometry + \brief the pixel geometry of the virtual desktop to which this screen belongs + Returns the pixel geometry of the virtual desktop corresponding to this screen. This is the union of the virtual siblings' individual geometries. @@ -313,6 +319,9 @@ QRect QScreen::virtualGeometry() const } /*! + \property QScreen::availableVirtualSize + \brief the available size of the virtual desktop to which this screen belongs + Returns the available pixel size of the virtual desktop corresponding to this screen. This is the combined size of the virtual siblings' individual available geometries. @@ -325,7 +334,10 @@ QSize QScreen::availableVirtualSize() const } /*! - Returns the available size of the virtual desktop corresponding to this screen. + \property QScreen::availableVirtualGeometry + \brief the available geometry of the virtual desktop to which this screen belongs + + Returns the available geometry of the virtual desktop corresponding to this screen. This is the union of the virtual siblings' individual available geometries. |