+ static bool registered = []() -> bool {
+ qDBusRegisterMetaType<DBusImageStruct>();
+ qDBusRegisterMetaType<DBusImageVector>();
+ qDBusRegisterMetaType<DBusToolTipStruct>();
+ return true;
+ }();
+ Q_UNUSED(registered)
+
+ setMode(Mode::StatusNotifier);
+
+ connect(this, SIGNAL(visibilityChanged(bool)), this, SLOT(onVisibilityChanged(bool)));
+ connect(this, SIGNAL(modeChanged(Mode)), this, SLOT(onModeChanged(Mode)));
+ connect(this, SIGNAL(stateChanged(State)), this, SLOT(onStateChanged(State)));
+
+ trayMenu()->installEventFilter(this);
+