Skip to content

Commit 59298f6

Browse files
committed
i3: fix Q_PROPERTY definitions for use with typegen
The regex currently can't handle line breaks
1 parent fd87be1 commit 59298f6

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/x11/i3/ipc/monitor.hpp

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,32 @@ namespace qs::i3::ipc {
99
///! I3/Sway monitors
1010
class I3Monitor: public QObject {
1111
Q_OBJECT;
12-
12+
// clang-format off
1313
/// The ID of this monitor
1414
Q_PROPERTY(qint32 id READ id NOTIFY idChanged);
1515
/// The name of this monitor
1616
Q_PROPERTY(QString name READ name NOTIFY nameChanged);
1717
/// Wether this monitor is turned on or not
1818
Q_PROPERTY(bool power READ power NOTIFY powerChanged);
19-
2019
/// The current workspace
21-
Q_PROPERTY(qs::i3::ipc::I3Workspace* focusedWorkspace READ focusedWorkspace NOTIFY
22-
focusedWorkspaceChanged);
23-
20+
Q_PROPERTY(qs::i3::ipc::I3Workspace* focusedWorkspace READ focusedWorkspace NOTIFY focusedWorkspaceChanged);
2421
/// The X coordinate of this monitor inside the monitor layout
2522
Q_PROPERTY(qint32 x READ x NOTIFY xChanged);
26-
2723
/// The Y coordinate of this monitor inside the monitor layout
2824
Q_PROPERTY(qint32 y READ y NOTIFY yChanged);
29-
3025
/// The width in pixels of this monitor
3126
Q_PROPERTY(qint32 width READ width NOTIFY widthChanged);
32-
3327
/// The height in pixels of this monitor
3428
Q_PROPERTY(qint32 height READ height NOTIFY heightChanged);
35-
3629
/// The scaling factor of this monitor, 1 means it runs at native resolution
3730
Q_PROPERTY(qreal scale READ scale NOTIFY scaleChanged);
38-
3931
/// Whether this monitor is currently in focus
4032
Q_PROPERTY(bool focused READ focused NOTIFY focusedChanged);
41-
4233
/// Last JSON returned for this monitor, as a JavaScript object.
4334
///
4435
/// This updates every time Quickshell receives an `output` event from i3/Sway
4536
Q_PROPERTY(QVariantMap lastIpcObject READ lastIpcObject NOTIFY lastIpcObjectChanged);
46-
37+
// clang-format on
4738
QML_ELEMENT;
4839
QML_UNCREATABLE("I3Monitors must be retrieved from the I3Ipc object.");
4940

0 commit comments

Comments
 (0)