Skip to content

Commit bbca4b3

Browse files
committed
Generalize check against PySide6 to include PyQt6
1 parent 678d138 commit bbca4b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

runviewer/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ class RunviewerMainWindow(QtWidgets.QMainWindow):
196196

197197
def changeEvent(self, event):
198198

199-
# theme update only for PySide6
200-
if QT_ENV == 'PySide6' and event.type() == QtCore.QEvent.Type.ThemeChange:
199+
# theme update only for PySide6/PyQt6
200+
if QT_ENV.endswith('6') and event.type() == QtCore.QEvent.Type.ThemeChange:
201201
for widget in self.findChildren(QtWidgets.QWidget):
202202
# Complex widgets, like TreeView and TableView require triggering styleSheet and palette updates
203203
widget.setStyleSheet(widget.styleSheet())

0 commit comments

Comments
 (0)