sortByColumn( column, header()->sortIndicatorOrder() );
}
+/*!
+ \brief Called when the selection is changed.
+
+ Emits selectionChanged() signal.
+
+ \param selected new selection
+ \param deselected previous selection
+*/
+void QtxTreeView::selectionChanged( const QItemSelection& selected,
+ const QItemSelection& deselected )
+{
+ QTreeView::selectionChanged( selected, deselected );
+ emit( selectionChanged() );
+}
+
/*!
\brief Expand/collapse the specified item (recursively).
\param index model index
}
}
+/*!
+ \fn QtxTreeView::sortingEnabled( bool on );
+ \brief Emitted when "Sorting" commans is enabled/disabled from the popup menu.
+ \param on \c true if sorting is enabled and \c false otherwise
+*/
+
+/*!
+ \fn QtxTreeView::selectionChanged();
+ \brief Emitted when selection is changed in the tree view.
+*/
+
/*!
\brief Emit sortingEnabled(bool) signal.
\param enabled "enable sorting" flag state
protected slots:
void onHeaderClicked( int );
+ void selectionChanged( const QItemSelection&, const QItemSelection& );
protected:
void setOpened( const QModelIndex&, const int, bool );
signals:
void sortingEnabled( bool );
+ void selectionChanged();
private:
void emitSortingEnabled( bool );