Change to darkmode is prevented at runtine in Vistastyle
Task-number: QTBUG-112965 Task-number: QTBUG-113036 Pick-to: 6.5 Change-Id: I0049e68bbd8e83025f9f576dcd712d03206859d0 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
This commit is contained in:
parent
034e9b087e
commit
787038bb1d
@ -2605,6 +2605,7 @@ void QGuiApplicationPrivate::processSafeAreaMarginsChangedEvent(QWindowSystemInt
|
|||||||
|
|
||||||
void QGuiApplicationPrivate::processThemeChanged(QWindowSystemInterfacePrivate::ThemeChangeEvent *tce)
|
void QGuiApplicationPrivate::processThemeChanged(QWindowSystemInterfacePrivate::ThemeChangeEvent *tce)
|
||||||
{
|
{
|
||||||
|
QStyleHintsPrivate::get(QGuiApplication::styleHints())->setColorScheme(colorScheme());
|
||||||
if (self)
|
if (self)
|
||||||
self->handleThemeChanged();
|
self->handleThemeChanged();
|
||||||
|
|
||||||
@ -2614,8 +2615,6 @@ void QGuiApplicationPrivate::processThemeChanged(QWindowSystemInterfacePrivate::
|
|||||||
const QWindowList windows = tce->window ? QWindowList{tce->window} : window_list;
|
const QWindowList windows = tce->window ? QWindowList{tce->window} : window_list;
|
||||||
for (auto *window : windows)
|
for (auto *window : windows)
|
||||||
QGuiApplication::sendSpontaneousEvent(window, &themeChangeEvent);
|
QGuiApplication::sendSpontaneousEvent(window, &themeChangeEvent);
|
||||||
|
|
||||||
QStyleHintsPrivate::get(QGuiApplication::styleHints())->setColorScheme(colorScheme());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user