From b7fbd19a7660424e6839df37f12b33111408b1fc Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Fri, 25 Mar 2022 02:36:21 +0100 Subject: 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 --- src/views/tooltips/tooltipmanager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/views/tooltips/tooltipmanager.h') 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 m_tooltipWidget; - QScopedPointer m_fileMetaDataWidget; + DolphinFileMetaDataWidget *m_fileMetaDataWidget; bool m_toolTipRequested; bool m_metaDataRequested; -- cgit v1.3