Skip to content

Commit

Permalink
Merge pull request #29 from astrofrog/fix-pyqt6
Browse files Browse the repository at this point in the history
Fix compatibility with PyQt6
  • Loading branch information
astrofrog authored Aug 23, 2022
2 parents e6600c6 + 06e12de commit c63a031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echo/qt/connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ def update_widget(self, value):
if isinstance(choice, ChoiceSeparator):
item = combo_model.item(index)
palette = self._widget.palette()
item.setFlags(Qt.ItemFlags(int(item.flags()) & int(~(Qt.ItemIsSelectable | Qt.ItemIsEnabled))))
item.setFlags(item.flags() & ~(Qt.ItemIsSelectable | Qt.ItemIsEnabled))
item.setData(palette.color(QtGui.QPalette.Disabled, QtGui.QPalette.Text))

choices_updated = True
Expand Down

0 comments on commit c63a031

Please sign in to comment.