Ref T529, allow to explicitly set no sort order in model/view

This commit is contained in:
Klaus Basan
2019-02-04 16:52:50 +01:00
committed by Mat Sutcliffe
parent 14c3c51585
commit 3aee73840d
5 changed files with 31 additions and 3 deletions

View File

@@ -74,6 +74,9 @@ namespace BlackGui
//! Set sort column
virtual void setSortColumn(int column) { m_sortColumn = column; }
//! Disable sorting
void setNoSorting() { this->setSortColumn(-1); }
//! Sort by index
void sortByPropertyIndex(const BlackMisc::CPropertyIndex &propertyIndex, Qt::SortOrder order = Qt::AscendingOrder);