From 6f77a1fe9defeab40d90df82df238ef7dd2f906c Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 31 Dec 2021 00:47:14 +0100 Subject: Use the styles default delay for tooltips This makes them less annoying when scrolling or accessing the popup menu. See also #860 --- src/ui/NhekoGlobalObject.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui/NhekoGlobalObject.h') 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 -- cgit 1.5.1