mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-26 20:45:54 +00:00
History: default sorting by timestamp, descending
This commit is contained in:
parent
f38c6f4307
commit
de7d97db85
1 changed files with 10 additions and 0 deletions
|
@ -46,6 +46,16 @@ Rectangle {
|
|||
// setup date filter scope according to real transactions
|
||||
fromDatePicker.currentDate = model.transactionHistory.firstDateTime
|
||||
toDatePicker.currentDate = model.transactionHistory.lastDateTime
|
||||
|
||||
/* Default sorting by timestamp desc */
|
||||
/* Sort indicator on table header */
|
||||
/* index of 'sort by blockheight' column */
|
||||
header.activeSortColumn = 1
|
||||
/* Sorting model */
|
||||
|
||||
model.sortRole = TransactionHistoryModel.TransactionTimeStampRole
|
||||
model.sort(0, Qt.DescendingOrder);
|
||||
// TODO: public interface for 'Header' item that will cause 'sortRequest' signal
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue