mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-04 19:04:56 +11:00
docs: use new member reference shorthand
This commit is contained in:
parent
dfcf533424
commit
a9e4720fae
35 changed files with 182 additions and 146 deletions
|
|
@ -29,9 +29,13 @@ namespace qs::hyprland::ipc {
|
|||
/// Live Hyprland IPC event. Holding this object after the
|
||||
/// signal handler exits is undefined as the event instance
|
||||
/// is reused.
|
||||
///
|
||||
/// Emitted by @@Hyprland.rawEvent(s).
|
||||
class HyprlandIpcEvent: public QObject {
|
||||
Q_OBJECT;
|
||||
/// The name of the event.
|
||||
///
|
||||
/// See [Hyprland Wiki: IPC](https://wiki.hyprland.org/IPC/) for a list of events.
|
||||
Q_PROPERTY(QString name READ nameStr CONSTANT);
|
||||
/// The unparsed data of the event.
|
||||
Q_PROPERTY(QString data READ dataStr CONSTANT);
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class HyprlandMonitor: public QObject {
|
|||
///
|
||||
/// > [!WARNING] This is *not* updated unless the monitor object is fetched again from
|
||||
/// > Hyprland. If you need a value that is subject to change and does not have a dedicated
|
||||
/// > property, run `HyprlandIpc.refreshMonitors()` and wait for this property to update.
|
||||
/// > property, run @@Hyprland.refreshMonitors() and wait for this property to update.
|
||||
Q_PROPERTY(QVariantMap lastIpcObject READ lastIpcObject NOTIFY lastIpcObjectChanged);
|
||||
/// The currently active workspace on this monitor. May be null.
|
||||
Q_PROPERTY(HyprlandWorkspace* activeWorkspace READ activeWorkspace NOTIFY activeWorkspaceChanged);
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class HyprlandWorkspace: public QObject {
|
|||
///
|
||||
/// > [!WARNING] This is *not* updated unless the workspace object is fetched again from
|
||||
/// > Hyprland. If you need a value that is subject to change and does not have a dedicated
|
||||
/// > property, run `HyprlandIpc.refreshWorkspaces()` and wait for this property to update.
|
||||
/// > property, run @@Hyprland.refreshWorkspaces() and wait for this property to update.
|
||||
Q_PROPERTY(QVariantMap lastIpcObject READ lastIpcObject NOTIFY lastIpcObjectChanged);
|
||||
Q_PROPERTY(HyprlandMonitor* monitor READ monitor NOTIFY monitorChanged);
|
||||
QML_ELEMENT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue