@@ -126,13 +126,6 @@ class StatusNotifierItem: public QObject {
126
126
public:
127
127
explicit StatusNotifierItem (const QString& address, QObject* parent = nullptr );
128
128
129
- [[nodiscard]] bool isValid () const ;
130
- [[nodiscard]] bool isReady () const ;
131
- [[nodiscard]] QBindable<QString> bindableIcon () const { return &this ->bIcon ; };
132
- [[nodiscard]] QPixmap createPixmap (const QSize& size) const ;
133
-
134
- [[nodiscard]] dbus::dbusmenu::DBusMenuHandle* menuHandle ();
135
-
136
129
// / Primary activation action, generally triggered via a left click.
137
130
Q_INVOKABLE void activate ();
138
131
// / Secondary activation action, generally triggered via a middle click.
@@ -142,14 +135,21 @@ class StatusNotifierItem: public QObject {
142
135
// / Display a platform menu at the given location relative to the parent window.
143
136
Q_INVOKABLE void display (QObject* parentWindow, qint32 relativeX, qint32 relativeY);
144
137
145
- [[nodiscard]] QBindable<QString> bindableId () const { return &this ->bId ; };
146
- [[nodiscard]] QBindable<QString> bindableTitle () const { return &this ->bTitle ; };
147
- [[nodiscard]] QBindable<Status::Enum> bindableStatus () const { return &this ->bStatus ; };
148
- [[nodiscard]] QBindable<Category::Enum> bindableCategory () const { return &this ->bCategory ; };
149
- [[nodiscard]] QString tooltipTitle () const { return this ->bTooltip .value ().title ; };
150
- [[nodiscard]] QString tooltipDescription () const { return this ->bTooltip .value ().description ; };
151
- [[nodiscard]] QBindable<bool > bindableHasMenu () const { return &this ->bHasMenu ; };
152
- [[nodiscard]] QBindable<bool > bindableOnlyMenu () const { return &this ->bIsMenu ; };
138
+ [[nodiscard]] bool isValid () const ;
139
+ [[nodiscard]] bool isReady () const ;
140
+ [[nodiscard]] QBindable<QString> bindableIcon () const { return &this ->bIcon ; }
141
+ [[nodiscard]] QPixmap createPixmap (const QSize& size) const ;
142
+
143
+ [[nodiscard]] dbus::dbusmenu::DBusMenuHandle* menuHandle ();
144
+
145
+ [[nodiscard]] QBindable<QString> bindableId () const { return &this ->bId ; }
146
+ [[nodiscard]] QBindable<QString> bindableTitle () const { return &this ->bTitle ; }
147
+ [[nodiscard]] QBindable<Status::Enum> bindableStatus () const { return &this ->bStatus ; }
148
+ [[nodiscard]] QBindable<Category::Enum> bindableCategory () const { return &this ->bCategory ; }
149
+ [[nodiscard]] QString tooltipTitle () const { return this ->bTooltip .value ().title ; }
150
+ [[nodiscard]] QString tooltipDescription () const { return this ->bTooltip .value ().description ; }
151
+ [[nodiscard]] QBindable<bool > bindableHasMenu () const { return &this ->bHasMenu ; }
152
+ [[nodiscard]] QBindable<bool > bindableOnlyMenu () const { return &this ->bIsMenu ; }
153
153
154
154
signals:
155
155
void ready ();
0 commit comments