History: sorting by blockheight instead of timestamp

This commit is contained in:
Ilya Kitaev 2016-11-06 17:15:55 +03:00
parent c89c25c8ed
commit 10348af88a

View file

@ -75,10 +75,10 @@ Rectangle {
/* Default sorting by timestamp desc */ /* Default sorting by timestamp desc */
/* Sort indicator on table header */ /* Sort indicator on table header */
/* index of 'sort by blockheight' column */ /* index of 'sort by blockheight' column */
header.activeSortColumn = 1 header.activeSortColumn = 2
/* Sorting model */ /* Sorting model */
model.sortRole = TransactionHistoryModel.TransactionTimeStampRole model.sortRole = TransactionHistoryModel.TransactionBlockHeightRole
model.sort(0, Qt.DescendingOrder); model.sort(0, Qt.DescendingOrder);
d.initialized = true d.initialized = true
// TODO: public interface for 'Header' item that will cause 'sortRequest' signal // TODO: public interface for 'Header' item that will cause 'sortRequest' signal