diff options
author | David Redondo <qt@david-redondo.de> | 2023-12-12 15:56:39 +0100 |
---|---|---|
committer | David Redondo <qt@david-redondo.de> | 2023-12-13 15:15:24 +0100 |
commit | 620373e1ad47affbf7e63b73b8f634fbb273da99 (patch) | |
tree | f31dff9c7d6359de86eb24e0e8505815ed9b5028 /examples/widgets/draganddrop/draggabletext | |
parent | 9ea9e2476d72ae67178d55df99419f202b36131f (diff) |
Do not create icon engine multiple times
Creating an icon engine is a potentially expensive operation involving
many file lookups. In the case where neither QIconLoaderEngine nor the
engine from the platform theme is valid, QIconLoader tries to unsuccesfully
find the icon in all theme directories, the theme engine is constructed
potentially doing some expensive operation and finally a new
QIconLoaderEngine is constructed which does all the file lookups again.
Instead keep the existing QIconLoaderEngine around if it was already
constructed.
Pick-to: 6.7
Change-Id: Iace9a3f904730064f44939b2269316484ac6da2e
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/widgets/draganddrop/draggabletext')
0 files changed, 0 insertions, 0 deletions