aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickscreen_p.h
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-03-25 00:19:42 +0000
committerShawn Rutledge <shawn.rutledge@qt.io>2020-05-08 11:08:40 +0100
commitb97a2de222c8d51430b3e9281ff181361cb7ea14 (patch)
treefacb34889a24c1a133185c2ba469b36540b14b0d /src/quick/items/qquickscreen_p.h
parent1fc230c774ff599d14a40682c74f09118db04b2f (diff)
Remove Screen.orientationUpdateMask
Now Screen.orientation works by default rather than filtering by default. Task-number: QTBUG-83055 Change-Id: I0f49499ec25ceeebf19bc8ef1adc259023f1bc75 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quick/items/qquickscreen_p.h')
-rw-r--r--src/quick/items/qquickscreen_p.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/quick/items/qquickscreen_p.h b/src/quick/items/qquickscreen_p.h
index 6eb9959aed..78e82a420a 100644
--- a/src/quick/items/qquickscreen_p.h
+++ b/src/quick/items/qquickscreen_p.h
@@ -131,8 +131,6 @@ protected:
class Q_QUICK_PRIVATE_EXPORT QQuickScreenAttached : public QQuickScreenInfo
{
Q_OBJECT
- Q_PROPERTY(Qt::ScreenOrientations orientationUpdateMask READ orientationUpdateMask
- WRITE setOrientationUpdateMask NOTIFY orientationUpdateMaskChanged)
QML_ANONYMOUS
QML_ADDED_IN_VERSION(2, 0);
@@ -140,25 +138,17 @@ class Q_QUICK_PRIVATE_EXPORT QQuickScreenAttached : public QQuickScreenInfo
public:
QQuickScreenAttached(QObject* attachee);
- Qt::ScreenOrientations orientationUpdateMask() const;
- void setOrientationUpdateMask(Qt::ScreenOrientations mask);
-
//Treats int as Qt::ScreenOrientation, due to QTBUG-20639
Q_INVOKABLE int angleBetween(int a, int b);
void windowChanged(QQuickWindow*);
-Q_SIGNALS:
- void orientationUpdateMaskChanged();
-
protected Q_SLOTS:
void screenChanged(QScreen*);
private:
QQuickWindow* m_window = nullptr;
QQuickItem* m_attachee;
- Qt::ScreenOrientations m_updateMask;
- bool m_updateMaskSet = false;
};
class Q_QUICK_PRIVATE_EXPORT QQuickScreen : public QObject