summary refs log tree commit diff
path: root/src/ui/NhekoGlobalObject.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-31 00:47:14 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-31 00:48:55 +0100
commit6f77a1fe9defeab40d90df82df238ef7dd2f906c (patch)
tree79f00ea0ef6e64864216aabc8c7227453225b09e /src/ui/NhekoGlobalObject.h
parentGet rid of some useless code (diff)
downloadnheko-6f77a1fe9defeab40d90df82df238ef7dd2f906c.tar.xz
Use the styles default delay for tooltips
This makes them less annoying when scrolling or accessing the popup
menu.

See also #860
Diffstat (limited to 'src/ui/NhekoGlobalObject.h')
-rw-r--r--src/ui/NhekoGlobalObject.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/NhekoGlobalObject.h b/src/ui/NhekoGlobalObject.h

index c70813c5..9e3d463a 100644 --- a/src/ui/NhekoGlobalObject.h +++ b/src/ui/NhekoGlobalObject.h
@@ -24,6 +24,7 @@ class Nheko : public QObject Q_PROPERTY(int paddingSmall READ paddingSmall CONSTANT) Q_PROPERTY(int paddingMedium READ paddingMedium CONSTANT) Q_PROPERTY(int paddingLarge READ paddingLarge CONSTANT) + Q_PROPERTY(int tooltipDelay READ tooltipDelay CONSTANT) Q_PROPERTY(UserProfile *currentUser READ currentUser NOTIFY profileChanged) @@ -39,6 +40,9 @@ public: int paddingSmall() const { return 4; } int paddingMedium() const { return 8; } int paddingLarge() const { return 20; } + + int tooltipDelay() const; + UserProfile *currentUser() const; Q_INVOKABLE QFont monospaceFont() const