Hide Systray's auxiliary positioning methods from public and Qml
authorStephan Beyer <s-beyer@gmx.net>
Thu, 25 Jun 2020 10:46:16 +0000 (12:46 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Fri, 26 Jun 2020 12:03:26 +0000 (12:03 +0000)
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
src/gui/systray.h

index d2b908252d5f1a669edd36dbd8962326b60ca0f4..8f1612a2a2f498edc9d7b1d74143237c98a9bffd 100644 (file)
@@ -61,10 +61,6 @@ public:
     Q_INVOKABLE void setOpened();
     Q_INVOKABLE void setClosed();
     Q_INVOKABLE void positionWindow(QQuickWindow *window) const;
-    Q_INVOKABLE QPoint calcTrayIconCenter() const;
-    Q_INVOKABLE TaskBarPosition taskbarOrientation() const;
-    Q_INVOKABLE QRect taskbarGeometry() const;
-    Q_INVOKABLE QPoint computeWindowPosition(int width, int height) const;
 
 signals:
     void currentUserChanged();
@@ -88,6 +84,10 @@ private:
     QScreen *currentScreen() const;
     QRect currentScreenRect() const;
     QPoint computeWindowReferencePoint() const;
+    QPoint calcTrayIconCenter() const;
+    TaskBarPosition taskbarOrientation() const;
+    QRect taskbarGeometry() const;
+    QPoint computeWindowPosition(int width, int height) const;
 
     bool _isOpen = false;
     bool _syncIsPaused = false;