diff options
| author | Méven Car <[email protected]> | 2019-11-08 16:40:08 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2019-11-09 22:00:35 +0100 |
| commit | 31bc909c3bd051e02facb7f5dc65882ed9dc483c (patch) | |
| tree | 98c0c466a2d24089f75ee7ad15c3092978d49aaf /src/statusbar/dolphinstatusbar.h | |
| parent | 7949aee2d2528fb3adfc83d43799f1566e835466 (diff) | |
[Status Bar] Remove file status Timer, add text update delay
Summary:
Currently when hovering over a file we have its name, mimetype type and size display in the status bar for 1 second, after which the status of the folder is displayed.
This patch removes this timer making the status bar behavior more predictable and user friendly.
Instead there is a 50ms delay between when the status bar gets new text to display (for instance mouse hovering or keyboard navigation) and when the status bar displayed text is updated. This is to avoid flickering.
FIXED-IN: 19.12
BUG: 399267
Reviewers: #dolphin, elvisangelaccio, ngraham
Reviewed By: #dolphin, elvisangelaccio, ngraham
Subscribers: kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D25218
Diffstat (limited to 'src/statusbar/dolphinstatusbar.h')
| -rw-r--r-- | src/statusbar/dolphinstatusbar.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/statusbar/dolphinstatusbar.h b/src/statusbar/dolphinstatusbar.h index 7461d1d7d..2474732f5 100644 --- a/src/statusbar/dolphinstatusbar.h +++ b/src/statusbar/dolphinstatusbar.h @@ -67,8 +67,7 @@ public: /** * Replaces the text set by setText() by the text that - * has been set by setDefaultText(). It is assured that the previous - * text will be shown for at least 1 second. DolphinStatusBar::text() + * has been set by setDefaultText(). DolphinStatusBar::text() * will return an empty string after the reset has been done. */ void resetToDefaultText(); @@ -120,14 +119,6 @@ private slots: void updateLabelText(); /** - * Is invoked by m_resetToDefaultTextTimer and clears - * m_text so that the default text will be shown. This - * prevents that information-messages will be cleared - * too fast. - */ - void slotResetToDefaultText(); - - /** * Updates the text of the zoom slider tooltip to show * the currently used size. */ @@ -156,7 +147,7 @@ private: int m_progress; QTimer* m_showProgressBarTimer; - QTimer* m_resetToDefaultTextTimer; + QTimer* m_delayUpdateTimer; QTime m_textTimestamp; }; |
