Skip to content

Commit

Permalink
Updated PyQt5 constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphelix committed May 9, 2016
1 parent 554b151 commit 2cec19a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/flare/struct_typer.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ def __init__(self, parent=None):
self.ui=Ui_Dialog()
self.ui.setupUi(self)
self.ui.lineEdit.setText(g_DefaultPrefixRegexp)
self.ui.checkBox.setChecked(Qt.CheckState.Unchecked)
self.ui.checkBox.setChecked(Qt.Unchecked)
except Exception, err:
self.logger.exception('Error during init: %s', str(err))

def getActiveStruct(self):
return str(self.ui.listWidget.currentItem().data(Qt.ItemDataRole.DisplayRole))
return str(self.ui.listWidget.currentItem().data(Qt.DisplayRole))

def setStructs(self, structs):
for name in structs:
Expand Down

0 comments on commit 2cec19a

Please sign in to comment.