@@ -32,6 +32,7 @@ class MirSurfaceItem : public QQuickItem
3232 Q_PROPERTY(Type type READ type NOTIFY typeChanged)
3333 Q_PROPERTY(State state READ state NOTIFY stateChanged)
3434 Q_PROPERTY(QString name READ name NOTIFY nameChanged)
35+ Q_PROPERTY(Qt::ScreenOrientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged DESIGNABLE false)
3536 Q_PROPERTY(MirSurfaceItem* parentSurface READ parentSurface NOTIFY parentSurfaceChanged)
3637 Q_PROPERTY(QQmlListProperty<MirSurfaceItem> childSurfaces READ childSurfaces NOTIFY childSurfacesChanged DESIGNABLE false)
3738
@@ -69,9 +70,11 @@ public:
6970 Type type() const { return m_type; }
7071 State state() const { return m_state; }
7172 QString name() const { return m_name; }
73+ Qt::ScreenOrientation orientation() const { return m_orientation; }
7274 MirSurfaceItem* parentSurface() const { return m_parentSurface; }
7375 QList<MirSurfaceItem*> childSurfaceList();
7476
77+ void setOrientation(const Qt::ScreenOrientation orientation);
7578 void setApplication(ApplicationInfo* item);
7679 void setParentSurface(MirSurfaceItem* item);
7780
@@ -82,6 +85,7 @@ Q_SIGNALS:
8285 void typeChanged(Type);
8386 void stateChanged(State);
8487 void nameChanged(QString);
88+ void orientationChanged();
8589 void parentSurfaceChanged(MirSurfaceItem*);
8690 void childSurfacesChanged();
8791
@@ -110,6 +114,7 @@ private:
110114 const QString m_name;
111115 const Type m_type;
112116 State m_state;
117+ Qt::ScreenOrientation m_orientation;
113118
114119 MirSurfaceItem* m_parentSurface;
115120 QList<MirSurfaceItem*> m_children;