Reorder a couple of statements.
This commit is contained in:
parent
8ea0cd8285
commit
254cc82116
1 changed files with 3 additions and 1 deletions
|
|
@ -41,12 +41,13 @@ QueryTab::QueryTab(MainWindow *win, QWidget *parent) :
|
||||||
font.setFixedPitch(true);
|
font.setFixedPitch(true);
|
||||||
font.setPointSize(10);
|
font.setPointSize(10);
|
||||||
ui->queryEdit->setFont(font);
|
ui->queryEdit->setFont(font);
|
||||||
highlighter = new SqlSyntaxHighlighter(ui->queryEdit->document());
|
|
||||||
|
|
||||||
OpenDatabase* open_database = m_win->getDatabase();
|
OpenDatabase* open_database = m_win->getDatabase();
|
||||||
m_typeDelegate.setTypeSelectionModel(open_database->typeSelectionModel());
|
m_typeDelegate.setTypeSelectionModel(open_database->typeSelectionModel());
|
||||||
|
|
||||||
auto cat = open_database->catalogue();
|
auto cat = open_database->catalogue();
|
||||||
|
|
||||||
|
highlighter = new SqlSyntaxHighlighter(ui->queryEdit->document());
|
||||||
highlighter->setTypes(cat->types());
|
highlighter->setTypes(cat->types());
|
||||||
|
|
||||||
ui->paramTableView->setModel(&m_paramList);
|
ui->paramTableView->setModel(&m_paramList);
|
||||||
|
|
@ -62,6 +63,7 @@ QueryTab::~QueryTab()
|
||||||
{
|
{
|
||||||
m_dbConnection.closeConnection();
|
m_dbConnection.closeConnection();
|
||||||
m_dbConnection.setStateCallback(nullptr);
|
m_dbConnection.setStateCallback(nullptr);
|
||||||
|
|
||||||
// delete m_pgTypes;
|
// delete m_pgTypes;
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue