diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-12-06 11:01:43 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-12-07 09:34:12 +0100 |
commit | 76b58be4b8495f488607639f012de227dc047102 (patch) | |
tree | a18160a9cd732f37404c1f69f408c30cee264f4f /src/android/jar/src/org/qtproject/qt/android/QtNative.java | |
parent | 4e6f7ad26c31fe484421e873cf0de0fad0c878ee (diff) |
QIcon: don't rely on getting a null-icon in test
If a QPA-provided engine provides an "edit-cut" icon, then it won't be
null. We cannot reliably test that the icon came from the fallback theme
as the cacheKey of the icon doesn't change (the proxying to a different
theme is handled internally by the QThemeIconEngine).
That the cacheKey of a QIcon doesn't change even if the pixmaps we get
from it change is not a problem in practice; QIcon is a named container
for transient graphical assets that might change for reasons outside of
Qt's control (such as color scheme, or display resolution).
Change-Id: I695e8ad0c8f0aec7f17a2c242e64b615178b78b5
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/android/jar/src/org/qtproject/qt/android/QtNative.java')
0 files changed, 0 insertions, 0 deletions