WIP moving actions for toolbar to module system.

This commit is contained in:
eelke 2018-08-05 09:07:12 +02:00
parent f5e9c4b74e
commit 78a6666839
8 changed files with 225 additions and 114 deletions

View file

@ -179,47 +179,6 @@ void MainWindow::on_actionAbout_triggered()
}
void MainWindow::on_actionExecute_SQL_triggered()
{
QueryTab *tab = GetActiveQueryTab();
if (tab) {
tab->execute();
}
else {
QWidget *widget = ui->tabWidget->currentWidget();
CrudTab *ct = dynamic_cast<CrudTab*>(widget);
if (ct) {
ct->refresh();
}
}
}
void MainWindow::on_actionExplain_triggered()
{
QueryTab *tab = GetActiveQueryTab();
if (tab) {
tab->explain(false);
}
}
void MainWindow::on_actionExplain_Analyze_triggered()
{
QueryTab *tab = GetActiveQueryTab();
if (tab) {
tab->explain(true);
}
}
void MainWindow::on_actionCancel_triggered()
{
QueryTab *tab = GetActiveQueryTab();
if (tab) {
tab->cancel();
}
}
void MainWindow::closeEvent(QCloseEvent* /*event*/)
{
// TODO collect which files need saving