diff options
author | Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> | 2016-09-16 06:52:09 +0200 |
---|---|---|
committer | Pier Luigi Fiorini <pierluigi.fiorini@hawaiios.org> | 2016-09-20 08:26:06 +0000 |
commit | 5f256690a1e953ed456988b83daf43139b828131 (patch) | |
tree | c4d0e1e9fd6e2dc615701b9562e2edb36fdd69dc /src/compositor/compositor_api/qwaylandcompositor.h | |
parent | b248defd1741cd443dd1e5050fe5143e8650a7c7 (diff) |
Emit signals for compositor properties
Allow property binding from QML and add a created property that is
set to true after the initialization.
Change-Id: I923eedc793660b4ea18372eb0182eae0bcca436d
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandcompositor.h')
-rw-r--r-- | src/compositor/compositor_api/qwaylandcompositor.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/compositor/compositor_api/qwaylandcompositor.h b/src/compositor/compositor_api/qwaylandcompositor.h index 15022b378..8b190d1d2 100644 --- a/src/compositor/compositor_api/qwaylandcompositor.h +++ b/src/compositor/compositor_api/qwaylandcompositor.h @@ -73,8 +73,9 @@ class Q_WAYLAND_COMPOSITOR_EXPORT QWaylandCompositor : public QWaylandObject { Q_OBJECT Q_DECLARE_PRIVATE(QWaylandCompositor) - Q_PROPERTY(QByteArray socketName READ socketName WRITE setSocketName) - Q_PROPERTY(bool retainedSelection READ retainedSelectionEnabled WRITE setRetainedSelectionEnabled) + Q_PROPERTY(QByteArray socketName READ socketName WRITE setSocketName NOTIFY socketNameChanged) + Q_PROPERTY(bool created READ isCreated NOTIFY createdChanged) + Q_PROPERTY(bool retainedSelection READ retainedSelectionEnabled WRITE setRetainedSelectionEnabled NOTIFY retainedSelectionChanged) Q_PROPERTY(QWaylandOutput *defaultOutput READ defaultOutput WRITE setDefaultOutput NOTIFY defaultOutputChanged) Q_PROPERTY(bool useHardwareIntegrationExtension READ useHardwareIntegrationExtension WRITE setUseHardwareIntegrationExtension NOTIFY useHardwareIntegrationExtensionChanged) Q_PROPERTY(QWaylandSeat *defaultSeat READ defaultSeat NOTIFY defaultSeatChanged) @@ -126,6 +127,10 @@ public Q_SLOTS: void processWaylandEvents(); Q_SIGNALS: + void createdChanged(); + void socketNameChanged(const QByteArray &socketName); + void retainedSelectionChanged(bool retainedSelection); + void surfaceRequested(QWaylandClient *client, uint id, int version); void surfaceCreated(QWaylandSurface *surface); void surfaceAboutToBeDestroyed(QWaylandSurface *surface); |