Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>2020-04-24 19:34:11 +0300
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>2020-06-15 15:32:25 +0300
commitf44df7f61a80c3bc86164ef1e2c3e9732cdc724e (patch)
treedcfac2a828907642b8cd2eaf12bf8724b7d6a3c1 /src/gui/systray.h
parent121e23e322ac373dbff48db08c19cbb64b651d30 (diff)
Major multi monitor improvements and rewrite of tray window positioning
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
Diffstat (limited to 'src/gui/systray.h')
-rw-r--r--src/gui/systray.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gui/systray.h b/src/gui/systray.h
index 0152a75ff..ad92c7a54 100644
--- a/src/gui/systray.h
+++ b/src/gui/systray.h
@@ -33,6 +33,13 @@ namespace Ui {
class Systray;
}
+enum TaskBarPosition {
+ Bottom = 0,
+ Left,
+ Top,
+ Right
+};
+
/**
* @brief The Systray class
* @ingroup gui
@@ -51,12 +58,13 @@ public:
bool isOpen();
Q_INVOKABLE void pauseResumeSync();
- Q_INVOKABLE int calcTrayWindowX();
- Q_INVOKABLE int calcTrayWindowY();
Q_INVOKABLE bool syncIsPaused();
Q_INVOKABLE void setOpened();
Q_INVOKABLE void setClosed();
Q_INVOKABLE int screenIndex();
+ Q_INVOKABLE QPoint calcTrayIconCenter();
+ Q_INVOKABLE int taskbarOrientation();
+ Q_INVOKABLE QRect taskbarRect();
signals:
void currentUserChanged();