diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-04-15 16:40:14 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-04-16 08:26:29 +0200 |
commit | 136058c794c69266e5c4f7ec4f042ef193aaa304 (patch) | |
tree | ba8f9d9fbcca9de6e400bbd838d675f86376a600 /src/quick/items/qquickscreen_p.h | |
parent | b2e1417e87dcd74d5cc451d5b6d3a040d2f4df94 (diff) |
Export QQuickScreenInfo and QQuickScreenAttached to QML
They are used as properties and should therefore at least be available
as anonymous types.
Change-Id: I4f91ff9f499084f4c2b3612237b41baee5604c35
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquickscreen_p.h')
-rw-r--r-- | src/quick/items/qquickscreen_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quick/items/qquickscreen_p.h b/src/quick/items/qquickscreen_p.h index eade79e683..6eb9959aed 100644 --- a/src/quick/items/qquickscreen_p.h +++ b/src/quick/items/qquickscreen_p.h @@ -83,6 +83,8 @@ class Q_QUICK_PRIVATE_EXPORT QQuickScreenInfo : public QObject Q_PROPERTY(int virtualX READ virtualX NOTIFY virtualXChanged REVISION(2, 3)) Q_PROPERTY(int virtualY READ virtualY NOTIFY virtualYChanged REVISION(2, 3)) + QML_ANONYMOUS + QML_ADDED_IN_VERSION(2, 0); public: QQuickScreenInfo(QObject *parent = nullptr, QScreen *wrappedScreen = nullptr); @@ -132,6 +134,9 @@ class Q_QUICK_PRIVATE_EXPORT QQuickScreenAttached : public QQuickScreenInfo Q_PROPERTY(Qt::ScreenOrientations orientationUpdateMask READ orientationUpdateMask WRITE setOrientationUpdateMask NOTIFY orientationUpdateMaskChanged) + QML_ANONYMOUS + QML_ADDED_IN_VERSION(2, 0); + public: QQuickScreenAttached(QObject* attachee); |