diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-09-03 11:52:28 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2018-09-05 06:53:02 +0000 |
commit | cea1c904f4e4a4a50d975c5290cd2bea4588e281 (patch) | |
tree | 2575eb188e184f8c958f66a0f312dd4699644fde /src/compositor/extensions/qwaylandxdgshell.cpp | |
parent | 27aca1beccbb0a7ab48df290d4b7bf016e38d253 (diff) |
Compositor: Add documentation for xdg-decoration-unstable-v1
And QWaylandXdgToplevel::decorationMode
Change-Id: I52146b55757b6866061c7b06d2595e233d6af1ff
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor/extensions/qwaylandxdgshell.cpp')
-rw-r--r-- | src/compositor/extensions/qwaylandxdgshell.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshell.cpp b/src/compositor/extensions/qwaylandxdgshell.cpp index 90841b117..eaa443e87 100644 --- a/src/compositor/extensions/qwaylandxdgshell.cpp +++ b/src/compositor/extensions/qwaylandxdgshell.cpp @@ -904,6 +904,34 @@ bool QWaylandXdgToplevel::activated() const return d->m_lastAckedConfigure.states.contains(QWaylandXdgToplevel::State::ActivatedState); } +/*! + * \enum QWaylandXdgToplevel::DecorationMode + * + * This enum type is used to specify the window decoration mode for toplevel windows. + * + * \value ServerSideDecoration The compositor should draw window decorations. + * \value ClientSideDecoration The client should draw window decorations. + */ + +/*! + * \qmlproperty enumeration QtWaylandCompositor::XdgToplevel::decorationMode + * + * This property holds the current window decoration mode for this toplevel. + * + * The possible values are: + * \value XdgToplevel.ServerSideDecoration The compositor should draw window decorations. + * \value XdgToplevel.ClientSideDecoration The client should draw window decorations. + * + * \sa XdgDecorationManagerV1 + */ + +/*! + * \property QWaylandXdgToplevel::decorationMode + * + * This property holds the current window decoration mode for this toplevel. + * + * \sa QWaylandXdgDecorationManagerV1 + */ QWaylandXdgToplevel::DecorationMode QWaylandXdgToplevel::decorationMode() const { Q_D(const QWaylandXdgToplevel); |