]> cloud.milkyroute.net Git - dolphin.git/commit
Reuse metadata widget when creating tooltips
authorNicolas Fella <nicolas.fella@gmx.de>
Fri, 25 Mar 2022 01:36:21 +0000 (02:36 +0100)
committerNicolas Fella <nicolas.fella@gmx.de>
Fri, 25 Mar 2022 10:18:46 +0000 (11:18 +0100)
commitb7fbd19a7660424e6839df37f12b33111408b1fc
tree93f57195d36120f0a62d50025a6b9cf0198b9670
parentf509d41baf326d59d9a71a56628ae282ae58511b
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.cpp
src/views/tooltips/tooltipmanager.h