Skip to content

Commit

Permalink
UserRole -> ItemDataRole.UserRole
Browse files Browse the repository at this point in the history
  • Loading branch information
greghope667 committed Jul 13, 2023
1 parent e292cc0 commit 6482889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plover/gui_qt/machine_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _format_port(self, index):
self._doc.clear()
cursor = QTextCursor(self._doc)
cursor.setCharFormat(self._device_format)
port_info = index.data(Qt.UserRole)
port_info = index.data(Qt.ItemDataRole.UserRole)
if port_info is None:
cursor.insertText(index.data(Qt.ItemDataRole.DisplayRole))
return
Expand Down

0 comments on commit 6482889

Please sign in to comment.