- few changes in the Milling UI

- made some changes in the application to prepare for usage of PyQt6
This commit is contained in:
Marius Stanciu
2020-12-08 17:55:41 +02:00
committed by Marius
parent d843cf7da7
commit 5a6271be09
6 changed files with 13 additions and 7 deletions

View File

@@ -100,7 +100,8 @@ class GeneralGUIPrefGroupUI(OptionsGroupUI):
self.style_combo = FCComboBox()
self.style_combo.addItems(QtWidgets.QStyleFactory.keys())
# find current style
index = self.style_combo.findText(QtWidgets.qApp.style().objectName(), QtCore.Qt.MatchFixedString)
current_style = QtCore.QCoreApplication.instance().style().objectName()
index = self.style_combo.findText(current_style, QtCore.Qt.MatchFixedString)
self.style_combo.setCurrentIndex(index)
self.style_combo.activated[str].connect(self.handle_style)