From ff02cc082195536437f66c4d96b352cbe149fa49 Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Sun, 6 Nov 2016 15:29:21 +0300 Subject: [PATCH] History: default sorting by timestamp, descending --- pages/History.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pages/History.qml b/pages/History.qml index a6c216bf..adf7e72f 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -63,6 +63,16 @@ Rectangle { fromDatePicker.currentDate = model.transactionHistory.firstDateTime toDatePicker.currentDate = model.transactionHistory.lastDateTime selectedAmount.text = getSelectedAmount() + + /* 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 } }