Query tab will now show multiple data tabs if it get's multiple results
with tuples.
This commit is contained in:
parent
424cbc9e2e
commit
b6d986051b
21 changed files with 349 additions and 113 deletions
|
|
@ -26,7 +26,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
ui->setupUi(this);
|
||||
|
||||
ui->tabWidget->setDocumentMode(true);
|
||||
ui->tabWidget->setTabsClosable(true);
|
||||
//ui->tabWidget->setTabsClosable(true);
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
|
|
@ -40,6 +40,7 @@ QueryTab* MainWindow::newSqlPage()
|
|||
qt->setConfig(m_config);
|
||||
ui->tabWidget->addTab(qt, "Tab");
|
||||
ui->tabWidget->setCurrentWidget(qt);
|
||||
qt->newdoc();
|
||||
return qt;
|
||||
}
|
||||
|
||||
|
|
@ -125,7 +126,8 @@ void MainWindow::on_actionExport_data_triggered()
|
|||
|
||||
void MainWindow::on_actionClose_triggered()
|
||||
{
|
||||
close();
|
||||
//close();
|
||||
on_tabWidget_tabCloseRequested(ui->tabWidget->currentIndex());
|
||||
}
|
||||
|
||||
void MainWindow::on_actionAbout_triggered()
|
||||
|
|
@ -172,11 +174,20 @@ void MainWindow::on_actionExecute_SQL_triggered()
|
|||
}
|
||||
}
|
||||
|
||||
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->explainAnalyze();
|
||||
tab->explain(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -221,3 +232,4 @@ void MainWindow::on_tabWidget_tabCloseRequested(int index)
|
|||
ui->tabWidget->removeTab(index);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue