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

Method saveMenuSelected

src/frontend/TemplateHandler.cpp:348–353  ·  view source on GitHub ↗

! * Is called when the current properties are going to be saved in an already available template. * Emits \c saveConfigRequested, the receiver of the signal has to config.sync(). */

Source from the content-addressed store, hash-verified

346 * Emits \c saveConfigRequested, the receiver of the signal has to config.sync().
347 */
348void TemplateHandler::saveMenuSelected(QAction* action) {
349 QString path = m_dirName + m_className + QLatin1Char('/') + action->data().toString();
350 KConfig config(path, KConfig::SimpleConfig);
351 Q_EMIT saveConfigRequested(config);
352 Q_EMIT info(i18n("Template \"%1\" was saved.", action->text()));
353}
354
355/*!
356 * Is called when the current properties are going to be saved as new default properties.

Callers

nothing calls this directly

Calls 3

toStringMethod · 0.45
dataMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected