summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2020-08-11 22:35:55 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2020-08-27 22:47:33 +0200
commit462b36c3dee591bd964670dc614b995ece335331 (patch)
tree9e3de2988b07ae99f6904bf71d57f8957bff3171 /src/corelib/kernel
parentfc4a73aa544bf03d881ddb7e2eb8ebd47d7da7b8 (diff)
QIconEngine: move away from virtual_hook usage
Upgrade existing functions to be virtual functions: - virtual QString iconName() - virtual bool isNull() - virtual QPixmap scaledPixmap(...) - virtual QList<QSize> availableSizes(...) Make all of them non-const and remove the const_casts in the implementation. Keep the default implementation which calls virtual_hook(), for compatibility. Note: availableSizes was already virtual, but now loses the “const”. Port two overrides in the platform themes. Keep virutal_hook() around for future expansion. Task-number: QTBUG-85885 Change-Id: I76d0c9f75bfd6ca870c669047d4ef18b82c692e5 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/corelib/kernel')
0 files changed, 0 insertions, 0 deletions