diff options
author | Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> | 2020-05-20 11:12:55 +0300 |
---|---|---|
committer | Kevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com> | 2020-06-15 15:32:25 +0300 |
commit | a6f918f3c215dca6b14f9dab8a5c2d057c399f56 (patch) | |
tree | 9a0ed78bad20f8a84ca01457ce603ad9215eaec0 /src/gui/systray.h | |
parent | f44df7f61a80c3bc86164ef1e2c3e9732cdc724e (diff) |
More simplifications, also transfer of more tray positioning logic to C++ backend.
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
Diffstat (limited to 'src/gui/systray.h')
-rw-r--r-- | src/gui/systray.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gui/systray.h b/src/gui/systray.h index ad92c7a54..5dd26ad04 100644 --- a/src/gui/systray.h +++ b/src/gui/systray.h @@ -33,13 +33,6 @@ namespace Ui { class Systray; } -enum TaskBarPosition { - Bottom = 0, - Left, - Top, - Right -}; - /** * @brief The Systray class * @ingroup gui @@ -52,6 +45,9 @@ public: static Systray *instance(); virtual ~Systray() {}; + enum class TaskBarPosition { Bottom, Left, Top, Right }; + Q_ENUM(TaskBarPosition); + void create(); void showMessage(const QString &title, const QString &message, MessageIcon icon = Information); void setToolTip(const QString &tip); @@ -63,7 +59,7 @@ public: Q_INVOKABLE void setClosed(); Q_INVOKABLE int screenIndex(); Q_INVOKABLE QPoint calcTrayIconCenter(); - Q_INVOKABLE int taskbarOrientation(); + Q_INVOKABLE TaskBarPosition taskbarOrientation(); Q_INVOKABLE QRect taskbarRect(); signals: |