convert Qt flags to int (fix Qt DeprecationWarning)
This commit is contained in:
@@ -173,7 +173,7 @@ class HistoryNode(CustomNode):
|
||||
msg = str(conf) + _(" confirmation" + ("s" if conf != 1 else ""))
|
||||
return QVariant(msg)
|
||||
elif col > HistoryColumns.DESCRIPTION and role == Qt.TextAlignmentRole:
|
||||
return QVariant(Qt.AlignRight | Qt.AlignVCenter)
|
||||
return QVariant(int(Qt.AlignRight | Qt.AlignVCenter))
|
||||
elif col > HistoryColumns.DESCRIPTION and role == Qt.FontRole:
|
||||
monospace_font = QFont(MONOSPACE_FONT)
|
||||
return QVariant(monospace_font)
|
||||
@@ -417,7 +417,7 @@ class HistoryModel(CustomModel, Logger):
|
||||
extra_flags = Qt.NoItemFlags # type: Qt.ItemFlag
|
||||
if idx.column() in self.view.editable_columns:
|
||||
extra_flags |= Qt.ItemIsEditable
|
||||
return super().flags(idx) | extra_flags
|
||||
return super().flags(idx) | int(extra_flags)
|
||||
|
||||
@staticmethod
|
||||
def tx_mined_info_from_tx_item(tx_item):
|
||||
|
||||
Reference in New Issue
Block a user