[Qt] Add sorting feature to the requested payments table

This commit is contained in:
Cozz Lovan
2014-01-18 00:01:14 +01:00
parent 8476d5d407
commit 4d901023b7
4 changed files with 52 additions and 2 deletions

View File

@@ -55,6 +55,8 @@ void ReceiveCoinsDialog::setModel(WalletModel *model)
ui->recentRequestsView->horizontalHeader()->setSectionResizeMode(RecentRequestsTableModel::Message, QHeaderView::Stretch);
#endif
ui->recentRequestsView->horizontalHeader()->resizeSection(RecentRequestsTableModel::Amount, 100);
model->getRecentRequestsTableModel()->sort(RecentRequestsTableModel::Date, Qt::DescendingOrder);
}
}