electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 32ffc9e9a415f0709f8a2e4595c5de7c1ebbb52b
parent dfcdcb8d6410958e8533817f81a6d17bdc463280
Author: ThomasV <thomasv@electrum.org>
Date:   Sat, 21 Nov 2020 12:13:00 +0100

convert Qt flags to int (fix Qt DeprecationWarning)

Diffstat:
Melectrum/gui/qt/history_list.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/electrum/gui/qt/history_list.py b/electrum/gui/qt/history_list.py @@ -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):