From db78bba3f4d9153bfd317003e6420719e4dc2820 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Thu, 18 Jul 2024 12:44:50 +0200 Subject: [PATCH] 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 (cherry picked from commit 2b66952b83f048ebaf896691178910ed4e466ede) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qplatformtheme.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/kernel/qplatformtheme.h b/src/gui/kernel/qplatformtheme.h index 6c671aff2fb..6965e55fcc4 100644 --- a/src/gui/kernel/qplatformtheme.h +++ b/src/gui/kernel/qplatformtheme.h @@ -297,7 +297,6 @@ public: #endif virtual Qt::ColorScheme colorScheme() const; - virtual void requestColorScheme(Qt::ColorScheme scheme); virtual const QPalette *palette(Palette type = SystemPalette) const; @@ -318,6 +317,7 @@ public: #if QT_CONFIG(shortcut) virtual QKeySequence standardButtonShortcut(int button) const; #endif + virtual void requestColorScheme(Qt::ColorScheme scheme); static QVariant defaultThemeHint(ThemeHint hint); static QString defaultStandardButtonText(int button);