Avoid crashing with plasma-integration

Move the virtual to at least make us call the right methods still when
encountering a platformtheme compiled against an older version

Change-Id: Idb6e75b71889c04b2a11e94492d0906dc8ddc84f
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 2b66952b83f048ebaf896691178910ed4e466ede)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Allan Sandfeld Jensen 2024-07-18 12:44:50 +02:00 committed by Qt Cherry-pick Bot
parent f5971dc78a
commit db78bba3f4

View File

@ -297,7 +297,6 @@ public:
#endif #endif
virtual Qt::ColorScheme colorScheme() const; virtual Qt::ColorScheme colorScheme() const;
virtual void requestColorScheme(Qt::ColorScheme scheme);
virtual const QPalette *palette(Palette type = SystemPalette) const; virtual const QPalette *palette(Palette type = SystemPalette) const;
@ -318,6 +317,7 @@ public:
#if QT_CONFIG(shortcut) #if QT_CONFIG(shortcut)
virtual QKeySequence standardButtonShortcut(int button) const; virtual QKeySequence standardButtonShortcut(int button) const;
#endif #endif
virtual void requestColorScheme(Qt::ColorScheme scheme);
static QVariant defaultThemeHint(ThemeHint hint); static QVariant defaultThemeHint(ThemeHint hint);
static QString defaultStandardButtonText(int button); static QString defaultStandardButtonText(int button);