Make Systray's void methods slots
authorClaudio Cambra <claudio.cambra@gmail.com>
Fri, 14 Oct 2022 16:59:08 +0000 (18:59 +0200)
committerClaudio Cambra <claudio.cambra@gmail.com>
Tue, 25 Oct 2022 10:19:17 +0000 (12:19 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
src/gui/systray.h

index 4da1ecedf955280f52fb06ef20b0fca8dd28c281..7350011fc8527cdd53b6aa515b6c4d034d890aaf 100644 (file)
@@ -82,15 +82,6 @@ public:
     enum class WindowPosition { Default, Center };
     Q_ENUM(WindowPosition);
 
-    void setTrayEngine(QQmlApplicationEngine *trayEngine);
-    void create();
-    void showMessage(const QString &title, const QString &message, MessageIcon icon = Information);
-    void showUpdateMessage(const QString &title, const QString &message, const QUrl &webUrl);
-    void setToolTip(const QString &tip);
-    void createCallDialog(const Activity &callNotification, const AccountStatePtr accountState);
-    void createEditFileLocallyLoadingDialog(const QString &fileName);
-    void destroyEditFileLocallyLoadingDialog();
-
     Q_REQUIRED_RESULT QString windowTitle() const;
     Q_REQUIRED_RESULT bool useNormalWindow() const;
 
@@ -113,6 +104,17 @@ signals:
     void isOpenChanged();
 
 public slots:
+    void setTrayEngine(QQmlApplicationEngine *trayEngine);
+    void create();
+
+    void showMessage(const QString &title, const QString &message, MessageIcon icon = Information);
+    void showUpdateMessage(const QString &title, const QString &message, const QUrl &webUrl);
+    void setToolTip(const QString &tip);
+
+    void createCallDialog(const Activity &callNotification, const AccountStatePtr accountState);
+    void createEditFileLocallyLoadingDialog(const QString &fileName);
+    void destroyEditFileLocallyLoadingDialog();
+
     void slotCurrentUserChanged();
 
     void forceWindowInit(QQuickWindow *window) const;