Skip to content

Commit

Permalink
QT: Transaction tab columns size fix (#1335)
Browse files Browse the repository at this point in the history
* QT: Amount column size fix

* QT: Status column size fix
  • Loading branch information
levoncrypto authored Sep 21, 2023
1 parent 3bc6419 commit d563a22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/qt/transactionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/qt/transactionview.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit d563a22

Please sign in to comment.