MainWindow: Automatically resize Schema column in DB Structure tab

Automatically resize the Schema column in the Database Structure tab of
the main window to fit its contents.

See issue #113.
This commit is contained in:
Martin Kleusberg
2014-10-12 17:45:14 +02:00
parent eb8e801b57
commit 63eaf01988

View File

@@ -290,6 +290,9 @@ void MainWindow::populateStructure()
sqlarea->getEditor()->setDefaultCompleterModel(&completerModelTables);
sqlarea->getEditor()->insertFieldCompleterModels(completerModelsFields);
}
// Resize SQL column to fit contents
ui->dbTreeWidget->resizeColumnToContents(3);
}
void MainWindow::populateTable(const QString & tablename, bool bKeepFilter)