Add function to have the possibility to sort the table.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2014 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
cfdev
2013-01-27 16:34:34 +00:00
parent 65a6bdc739
commit 0c153d1a3f
2 changed files with 10 additions and 0 deletions

View File

@@ -172,3 +172,12 @@ void DiagramContextWidget::initLayout() {
vlayout0 -> addWidget(table_);
setLayout(vlayout0);
}
/**
Set Sorting on the table.
*/
void DiagramContextWidget::setSorting(bool enable, int column, Qt::SortOrder order ) {
table_ -> setSortingEnabled(enable);
table_ -> sortByColumn(column, order);
}