From ecf08db2ec1d663a4ec1811518633ba7b8947064 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 27 May 2021 03:15:56 +0200 Subject: [PATCH] Accounts: align balance right --- src/model/SubaddressAccountModel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/model/SubaddressAccountModel.cpp b/src/model/SubaddressAccountModel.cpp index a15ba838..aa8fe609 100644 --- a/src/model/SubaddressAccountModel.cpp +++ b/src/model/SubaddressAccountModel.cpp @@ -57,6 +57,11 @@ QVariant SubaddressAccountModel::data(const QModelIndex &index, int role) const result = ModelUtils::getMonospaceFont(); } } + else if (role == Qt::TextAlignmentRole) { + if (index.column() == Column::Balance || index.column() == Column::UnlockedBalance) { + result = Qt::AlignRight; + } + } }); if (!found) {