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

Method templateNames

src/frontend/TemplateHandler.cpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167QStringList TemplateHandler::templateNames() const {
168 QStringList names;
169 auto list = QDir(m_dirName + m_className).entryList();
170 list.removeAll(QLatin1String("."));
171 list.removeAll(QLatin1String(".."));
172 for (int i = 0; i < list.size(); ++i) {
173 QFileInfo fileinfo(list.at(i));
174 names << fileinfo.baseName();
175 }
176
177 return names;
178}
179
180void TemplateHandler::retranslateUi() {
181 m_tbLoad->setText(i18n("Load"));

Callers 1

fileTypeChangedMethod · 0.80

Calls 2

removeAllMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected