The list of tables can now be sorted by either name,schema or schema,name by clicking on the column headers.

This commit is contained in:
eelke 2018-07-07 09:57:59 +02:00
parent 5b20f900fc
commit ec8c3ff5ec
3 changed files with 45 additions and 8 deletions

View file

@ -27,6 +27,8 @@ TablesPage::TablesPage(MainWindow *parent)
SetTableViewDefault(ui->tableListTable);
m_tablesModel = new TablesTableModel(this);
ui->tableListTable->setModel(m_tablesModel);
ui->tableListTable->setSortingEnabled(true);
ui->tableListTable->sortByColumn(0, Qt::AscendingOrder);
SetTableViewDefault(ui->columnsTable);
m_columnsModel = new ColumnTableModel(this);