diff options
author | Volker Hilsheimer <volker.hilsheimer@nokia.com> | 2009-07-17 13:58:13 (GMT) |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@nokia.com> | 2009-07-17 13:58:13 (GMT) |
commit | 154b98ce283b3ff2d5cad26578ab22dda7af9c81 (patch) | |
tree | b4ea69242ac6d036387a6aa28ad2219c3ff4a9d5 /src/gui | |
parent | 68c9608ada554c0b1f0cd755b0d783ff6e0001c2 (diff) | |
download | Qt-154b98ce283b3ff2d5cad26578ab22dda7af9c81.zip Qt-154b98ce283b3ff2d5cad26578ab22dda7af9c81.tar.gz Qt-154b98ce283b3ff2d5cad26578ab22dda7af9c81.tar.bz2 |
Implement QDesktopWidget::screenCount as a property, and add Q_PROPERTY
for other attributes as well.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qdesktopwidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qdesktopwidget.h b/src/gui/kernel/qdesktopwidget.h index 5ac953c..a21ae9d 100644 --- a/src/gui/kernel/qdesktopwidget.h +++ b/src/gui/kernel/qdesktopwidget.h @@ -56,6 +56,9 @@ class QDesktopWidgetPrivate; class Q_GUI_EXPORT QDesktopWidget : public QWidget { Q_OBJECT + Q_PROPERTY(bool virtualDesktop READ isVirtualDesktop) + Q_PROPERTY(int screenCount READ screenCount NOTIFY screenCountChanged) + Q_PROPERTY(int primaryScreen READ primaryScreen) public: QDesktopWidget(); ~QDesktopWidget(); @@ -63,6 +66,7 @@ public: bool isVirtualDesktop() const; int numScreens() const; + int screenCount() const; int primaryScreen() const; int screenNumber(const QWidget *widget = 0) const; |