Commit 903df09d 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

BUG: 393722
FIXED-IN: 5.18.0

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

Reviewers: mart

Reviewed By: mart

Subscribers: mart, ngraham, bcooksley, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26733
parent e677d2cc
......@@ -29,6 +29,7 @@
#include <QGridLayout>
#include <QApplication>
#include <QAbstractItemView>
#include <QStyle>
#include <QIcon>
#include <KIconLoader>
......@@ -53,7 +54,7 @@ public:
QTimer* timer = nullptr;
QModelIndex item;
QRect itemRect;
int delay = 50;
int delay = QApplication::style()->styleHint(QStyle::SH_ToolTip_WakeUpDelay);
};
ToolTipManager::ToolTipManager(QAbstractItemView* parent)
......
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