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. Change-Id: Iace9a3f904730064f44939b2269316484ac6da2e Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 620373e1ad47affbf7e63b73b8f634fbb273da99) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%