Smaller fixes and added Qt5 support

This commit is contained in:
2022-01-15 06:35:21 +01:00
parent 25e522fd8a
commit 9135c2f20c
20 changed files with 498 additions and 58 deletions
+14 -3
View File
@@ -740,7 +740,13 @@ void MainWindow::setupStylesMenu()
return QString{};
}
return style->name();
return style->
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
name
#else
objectName
#endif
();
}();
if (name.isEmpty())
@@ -754,11 +760,16 @@ void MainWindow::setupStylesMenu()
return;
}
QApplication::setStyle(style);
qDebug() << style->name();
});
m_actionGroupStyles->addAction(action);
action->setCheckable(true);
action->setChecked(currentStyle && currentStyle->name() == name);
action->setChecked(currentStyle && currentStyle->
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
name
#else
objectName
#endif
() == name);
}
}