Commit ab3a0959 authored by Harald Sitter's avatar Harald Sitter 🏳🌈
Browse files

tooltipmanager: use qstyle wakeup delay instead of hardcoding

Summary:
aids in making kinfocenter and systemsettings behave with the
same delay. plus not hardcoding things is always cool

Test Plan: builds, tooltip shows up, qdebugging says timeout is now 700

Reviewers: mart

Reviewed By: mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26843
parent a3b80cc9
......@@ -28,6 +28,7 @@
#include <QGridLayout>
#include <QApplication>
#include <QAbstractItemView>
#include <QStyle>
#include <KIconLoader>
#include <KColorScheme>
......@@ -51,7 +52,7 @@ public:
tooltip(nullptr),
view(nullptr),
timer(nullptr),
delay(300)
delay(QApplication::style()->styleHint(QStyle::SH_ToolTip_WakeUpDelay))
{ }
KToolTipWidget *tooltip;
......
......@@ -29,6 +29,7 @@
#include <QGridLayout>
#include <QApplication>
#include <QAbstractItemModel>
#include <QStyle>
#include <KIconLoader>
#include <KColorScheme>
......@@ -52,7 +53,7 @@ public:
tooltip(nullptr),
view(nullptr),
timer(nullptr),
delay(300)
delay(QApplication::style()->styleHint(QStyle::SH_ToolTip_WakeUpDelay))
{ }
KToolTipWidget *tooltip;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment