Added export of data in CSV format.
This commit is contained in:
parent
df866d7b67
commit
073c62048f
7 changed files with 56 additions and 3 deletions
|
|
@ -127,10 +127,14 @@ void MainWindow::on_actionSave_copy_of_SQL_as_triggered()
|
|||
|
||||
void MainWindow::on_actionExport_data_triggered()
|
||||
{
|
||||
QString home_dir = QStandardPaths::locate(QStandardPaths::HomeLocation, "", QStandardPaths::LocateDirectory);
|
||||
QString file_name = QFileDialog::getSaveFileName(this,
|
||||
tr("Export data"), home_dir, tr("CSV file (*.csv)"));
|
||||
QueryTab *tab = GetActiveQueryTab();
|
||||
if (tab) {
|
||||
QString home_dir = QStandardPaths::locate(QStandardPaths::HomeLocation, "", QStandardPaths::LocateDirectory);
|
||||
QString file_name = QFileDialog::getSaveFileName(this,
|
||||
tr("Export data"), home_dir, tr("CSV file (*.csv)"));
|
||||
|
||||
tab->exportData(file_name);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionClose_triggered()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue