diff options
| author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-05-26 11:14:07 +0200 |
|---|---|---|
| committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2024-05-31 19:30:52 +0200 |
| commit | 60061f679c500f89ef46f33be9f5d2f0cfb8a63d (patch) | |
| tree | 7263580aa6900e9a1a7b8e814ffdf851c16e02c2 /tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp | |
| parent | 6843e5d26d90fd4e27c8827ba01af7d584a2258e (diff) | |
QIcon: don't load image twice
QIcon::addPixmap() creates an icon engine when not yet available. During
the initialization, the filename of the image is already passed to the
icon engine and some (e.g. svg icon engine) already loads it. Afterwards
the image is loaded again with addFile(). Avoid this by checking if the
ctor of the icon engine already loaded the file and don't call addFile()
afterwards in this case.
Fixes: QTBUG-8151
Change-Id: I9289f17e5d703c08a82ce51ce8bded70feb6f82d
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
