Skip to content

Commit

Permalink
Merge pull request #710 from bitcraze/toverumar/fix_controller_config
Browse files Browse the repository at this point in the history
inputconfigdialogue: Update buttonrole enum to pyqt6.
  • Loading branch information
knmcguire committed Apr 24, 2024
2 parents 80f6ef6 + c8130e0 commit 4e44f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cfclient/ui/dialogs/inputconfigdialogue.py
Expand Up @@ -210,7 +210,7 @@ def _show_config_popup(self, caption, message, directions=[]):
self._combined_button = QtWidgets.QPushButton('Combined Axis ' +
'Detection')
self.cancelButton = QtWidgets.QPushButton('Cancel')
self._popup.addButton(self.cancelButton, QMessageBox.DestructiveRole)
self._popup.addButton(self.cancelButton, QMessageBox.ButtonRole.DestructiveRole)
self._popup.setWindowTitle(caption)
self._popup.setWindowFlags(Qt.WindowType.Dialog | Qt.WindowType.MSWindowsFixedSizeDialogHint)
if len(directions) > 1:
Expand All @@ -219,7 +219,7 @@ def _show_config_popup(self, caption, message, directions=[]):
self._combined_button.setCheckable(True)
self._combined_button.blockSignals(True)
self._popup.addButton(self._combined_button,
QMessageBox.ActionRole)
QMessageBox.ButtonRole.ActionRole)
self._popup.setText(message)
self._popup.show()

Expand Down

0 comments on commit 4e44f3c

Please sign in to comment.