| 128 | } |
| 129 | |
| 130 | void PlotTemplateDialog::chooseTemplateSearchPath() { |
| 131 | // Lock lock(mLoading); // No lock needed |
| 132 | KConfigGroup conf = Settings::group(QLatin1String("PlotTemplateDialog")); |
| 133 | const QString& dir = conf.readEntry(lastDirConfigEntry, QStandardPaths::writableLocation(QStandardPaths::HomeLocation)); |
| 134 | |
| 135 | const QString& path = QFileDialog::getExistingDirectory(nullptr, i18nc("@title:window", "Select template search path"), dir); |
| 136 | |
| 137 | ui->leCustomFolder->setText(path); |
| 138 | } |
| 139 | |
| 140 | CartesianPlot* PlotTemplateDialog::generatePlot() { |
| 141 | const QString path = templatePath(); |