summary refs log tree commit diff
path: root/src/ui/NhekoGlobalObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/NhekoGlobalObject.cpp')
-rw-r--r--src/ui/NhekoGlobalObject.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/NhekoGlobalObject.cpp b/src/ui/NhekoGlobalObject.cpp

index bc578476..e6869639 100644 --- a/src/ui/NhekoGlobalObject.cpp +++ b/src/ui/NhekoGlobalObject.cpp
@@ -4,7 +4,9 @@ #include "NhekoGlobalObject.h" +#include <QApplication> #include <QDesktopServices> +#include <QStyle> #include <QUrl> #include <QWindow> @@ -75,6 +77,12 @@ Nheko::theme() const return Theme(UserSettings::instance()->theme()); } +int +Nheko::tooltipDelay() const +{ + return QApplication::style()->styleHint(QStyle::StyleHint::SH_ToolTip_WakeUpDelay); +} + void Nheko::openLink(QString link) const {