service/tray: move menu access to SystemTrayMenuWatcher

This commit is contained in:
outfoxxed 2024-05-01 02:55:23 -07:00
parent 3c0456a3c0
commit e7cfb5cf37
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
4 changed files with 94 additions and 40 deletions

View file

@ -104,7 +104,7 @@ class DBusMenuItem: public QObject {
/// > instead of checking if `children` is empty.
Q_PROPERTY(QQmlListProperty<DBusMenuItem> children READ children NOTIFY childrenChanged);
// clang-format on
QML_NAMED_ELEMENT(DBusMenu);
QML_ELEMENT;
QML_UNCREATABLE("DBusMenus can only be acquired from a DBusMenuHandle");
public: