return h && ( h->sortingEnabled() );
}
+void QtxTreeView::setSortIndicators( const QVector<int>& inds, const QVector<Qt::SortOrder>& sorder)
+{
+ Header* h = dynamic_cast<Header*>( header() );
+ if( h ){
+ h->clearSortIndicators();
+ h->setSortIndicators( inds, sorder);
+ }
+}
+
+void QtxTreeView::sortIndicators( QVector<int>& inds, QVector<Qt::SortOrder>& sorder ) const
+{
+ Header* h = dynamic_cast<Header*>( header() );
+ if( h )
+ h->sortIndicators( inds, sorder);
+}
+
/*!
\brief Enables multi-column sorting.
As soon as multi-column sorting is enabled, the user can click
void setSortingEnabled( const bool );
bool sortingEnabled() const;
+ void setSortIndicators( const QVector<int>&, const QVector<Qt::SortOrder>& );
+ void sortIndicators( QVector<int>&, QVector<Qt::SortOrder>& ) const;
void setMultiSortEnabled( const bool );
bool multiSortEnabled() const;