diff options
| author | Nicolas Fella <[email protected]> | 2022-03-25 02:36:21 +0100 |
|---|---|---|
| committer | Nicolas Fella <[email protected]> | 2022-03-25 11:18:46 +0100 |
| commit | b7fbd19a7660424e6839df37f12b33111408b1fc (patch) | |
| tree | 93f57195d36120f0a62d50025a6b9cf0198b9670 /src/views/tooltips/tooltipmanager.h | |
| parent | f509d41baf326d59d9a71a56628ae282ae58511b (diff) | |
Reuse metadata widget when creating tooltips
Currently any time we hover the mouse over a file we create a new DolphinFileMetaDataWidget (even when we don't actually show a tooltip).
That is quite wasteful
Instead we can reuse the existing instance and only change the URL
Diffstat (limited to 'src/views/tooltips/tooltipmanager.h')
| -rw-r--r-- | src/views/tooltips/tooltipmanager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/tooltips/tooltipmanager.h b/src/views/tooltips/tooltipmanager.h index 3688e815c..066393344 100644 --- a/src/views/tooltips/tooltipmanager.h +++ b/src/views/tooltips/tooltipmanager.h @@ -77,7 +77,7 @@ private: QWindow* m_transientParent; QScopedPointer<KToolTipWidget> m_tooltipWidget; - QScopedPointer<DolphinFileMetaDataWidget> m_fileMetaDataWidget; + DolphinFileMetaDataWidget *m_fileMetaDataWidget; bool m_toolTipRequested; bool m_metaDataRequested; |
