From d563a2229b24c0984828288534a1429a3f7b6dfa Mon Sep 17 00:00:00 2001 From: levoncrypto <95240473+levoncrypto@users.noreply.github.com> Date: Thu, 21 Sep 2023 12:58:05 +0400 Subject: [PATCH] QT: Transaction tab columns size fix (#1335) * QT: Amount column size fix * QT: Status column size fix --- src/qt/transactionview.cpp | 1 + src/qt/transactionview.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qt/transactionview.cpp b/src/qt/transactionview.cpp index 86ed7cfeae..0af248c458 100644 --- a/src/qt/transactionview.cpp +++ b/src/qt/transactionview.cpp @@ -237,6 +237,7 @@ void TransactionView::setModel(WalletModel *_model) transactionView->setColumnWidth(TransactionTableModel::InstantSend, INSTANTSEND_COLUMN_WIDTH); transactionView->setColumnWidth(TransactionTableModel::Date, DATE_COLUMN_WIDTH); transactionView->setColumnWidth(TransactionTableModel::Type, TYPE_COLUMN_WIDTH); + transactionView->setColumnWidth(TransactionTableModel::ToAddress, ADDRESS_COLUMN_WIDTH); transactionView->horizontalHeader()->setSectionResizeMode(TransactionTableModel::Amount, QHeaderView::Fixed); transactionView->horizontalHeader()->setMinimumSectionSize(23); transactionView->horizontalHeader()->setStretchLastSection(true); diff --git a/src/qt/transactionview.h b/src/qt/transactionview.h index 792bbb5277..34775bb779 100644 --- a/src/qt/transactionview.h +++ b/src/qt/transactionview.h @@ -51,11 +51,12 @@ class TransactionView : public QWidget }; enum ColumnWidths { - STATUS_COLUMN_WIDTH = 170, + STATUS_COLUMN_WIDTH = 50, WATCHONLY_COLUMN_WIDTH = 23, INSTANTSEND_COLUMN_WIDTH = 23, DATE_COLUMN_WIDTH = 120, TYPE_COLUMN_WIDTH = 113, + ADDRESS_COLUMN_WIDTH = 300, AMOUNT_MINIMUM_COLUMN_WIDTH = 120, MINIMUM_COLUMN_WIDTH = 23 };