parent
8cb1d6eab3
commit
d67224858d
3 changed files with 7 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ QueryTab* MainWindow::newSqlPage()
|
||||||
ui->tabWidget->addTab(qt, "Tab");
|
ui->tabWidget->addTab(qt, "Tab");
|
||||||
ui->tabWidget->setCurrentWidget(qt);
|
ui->tabWidget->setCurrentWidget(qt);
|
||||||
qt->newdoc();
|
qt->newdoc();
|
||||||
|
qt->focusEditor();
|
||||||
return qt;
|
return qt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -598,3 +598,8 @@ void QueryTab::exportData(const QString &file_name)
|
||||||
rw->exportData(file_name);
|
rw->exportData(file_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QueryTab::focusEditor()
|
||||||
|
{
|
||||||
|
ui->queryEdit->setFocus();
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@ public:
|
||||||
QString fileName() const { return m_fileName; }
|
QString fileName() const { return m_fileName; }
|
||||||
bool isChanged() const { return m_queryTextChanged; }
|
bool isChanged() const { return m_queryTextChanged; }
|
||||||
bool isNew() const { return m_new; }
|
bool isNew() const { return m_new; }
|
||||||
|
void focusEditor();
|
||||||
private:
|
private:
|
||||||
|
|
||||||
using ResultTabContainer = std::vector<TuplesResultWidget*>;
|
using ResultTabContainer = std::vector<TuplesResultWidget*>;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue