Added several actions that were left out while switching to module.

- save copy as
- export
- copy as c string
- copy as raw cpp string
This commit is contained in:
eelke 2019-01-06 16:34:50 +01:00
parent 3e4917428d
commit e5dd27ff1a
3 changed files with 39 additions and 3 deletions

View file

@ -629,3 +629,11 @@ void QueryTool::focusEditor()
{
ui->queryEdit->setFocus();
}
void QueryTool::exportData()
{
QString home_dir = QStandardPaths::locate(QStandardPaths::HomeLocation, "", QStandardPaths::LocateDirectory);
QString file_name = QFileDialog::getSaveFileName(this,
tr("Export data"), home_dir, tr("CSV file (*.csv)"));
exportData(file_name);
}