mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user