workaround: don't use standardPalette on Qt 5.15
This commit is contained in:
@@ -39,6 +39,7 @@ QMap<QString, QString> StyleManager::available_themes_;
|
||||
|
||||
void StyleManager::UseOSNativeStyling(QWidget *widget)
|
||||
{
|
||||
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) || QT_VERSION > QT_VERSION_CHECK(5, 15, 1)
|
||||
#if defined(Q_OS_WINDOWS)
|
||||
QStyle* s = QStyleFactory::create(QStringLiteral("windowsvista"));
|
||||
widget->setStyle(s);
|
||||
@@ -48,6 +49,7 @@ void StyleManager::UseOSNativeStyling(QWidget *widget)
|
||||
widget->setStyle(s);
|
||||
widget->setPalette(s->standardPalette());
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
QPalette StyleManager::ParsePalette(const QString& ini_path)
|
||||
|
||||
Reference in New Issue
Block a user