summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qdesktopwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qdesktopwidget.h')
-rw-r--r--src/gui/kernel/qdesktopwidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qdesktopwidget.h b/src/gui/kernel/qdesktopwidget.h
index 470f10a..5ac953c 100644
--- a/src/gui/kernel/qdesktopwidget.h
+++ b/src/gui/kernel/qdesktopwidget.h
@@ -85,6 +85,7 @@ public:
Q_SIGNALS:
void resized(int);
void workAreaResized(int);
+ void screenCountChanged(int);
protected:
void resizeEvent(QResizeEvent *e);
@@ -97,6 +98,9 @@ private:
friend class QApplicationPrivate;
};
+inline int QDesktopWidget::screenCount() const
+{ return numScreens(); }
+
QT_END_NAMESPACE
QT_END_HEADER