MCPcopy Create free account
hub / github.com/KDE/labplot / chooseTemplateSearchPath

Method chooseTemplateSearchPath

src/frontend/PlotTemplateDialog.cpp:130–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void 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
140CartesianPlot* PlotTemplateDialog::generatePlot() {
141 const QString path = templatePath();

Callers

nothing calls this directly

Calls 2

groupFunction · 0.85
setTextMethod · 0.45

Tested by

no test coverage detected