Permalink
Browse files

Merge #8014: Qt: Sort transactions by date

2d5603c Qt: Sort transactions by date (Tyler Hardin)
  • Loading branch information...
jonasschnelli committed May 23, 2016
2 parents 6929711 + 2d5603c commit 77b49acc85d05eda96b6892db835d79f30314a3b
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/qt/overviewpage.cpp
  2. +1 −1 src/qt/transactionview.cpp
View
@@ -219,7 +219,7 @@ void OverviewPage::setWalletModel(WalletModel *model)
filter->setDynamicSortFilter(true);
filter->setSortRole(Qt::EditRole);
filter->setShowInactive(false);
filter->sort(TransactionTableModel::Status, Qt::DescendingOrder);
filter->sort(TransactionTableModel::Date, Qt::DescendingOrder);
ui->listTransactions->setModel(filter);
ui->listTransactions->setModelColumn(TransactionTableModel::ToAddress);
@@ -203,7 +203,7 @@ void TransactionView::setModel(WalletModel *model)
transactionView->setSelectionBehavior(QAbstractItemView::SelectRows);
transactionView->setSelectionMode(QAbstractItemView::ExtendedSelection);
transactionView->setSortingEnabled(true);
transactionView->sortByColumn(TransactionTableModel::Status, Qt::DescendingOrder);
transactionView->sortByColumn(TransactionTableModel::Date, Qt::DescendingOrder);
transactionView->verticalHeader()->hide();
transactionView->setColumnWidth(TransactionTableModel::Status, STATUS_COLUMN_WIDTH);

0 comments on commit 77b49ac

Please sign in to comment.