From de7d97db85b5dc3d2d6b88bf4f4d72dd07ea1429 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 bf71791a..aecb7acd 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -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 } }