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

Method loadSelected

src/frontend/ThemeHandler.cpp:151–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void ThemeHandler::loadSelected(const QString& name) {
152 Q_EMIT loadThemeRequested(name);
153 this->setCurrentTheme(name);
154
155 if (!name.isEmpty())
156 Q_EMIT info(i18n("Theme \"%1\" was loaded.", name));
157 else
158 Q_EMIT info(i18n("Theming deactivated."));
159
160 // in case a local theme file was loaded (we have write access), allow to publish it
161 // TODO: activate this later
162 // if (KStandardDirs::checkAccess(themeFilePath, W_OK)) {
163 // pbPublishTheme->setEnabled(true);
164 // m_currentLocalTheme = themeFilePath.right(themeFilePath.length() - themeFilePath.lastIndexOf(QLatin1String("/")) - 1);
165 // } else {
166 // pbPublishTheme->setEnabled(false);
167 // m_currentLocalTheme.clear();
168 // }
169}
170
171void ThemeHandler::showPanel() {
172#ifndef SDK

Callers

nothing calls this directly

Calls 2

setCurrentThemeMethod · 0.95
isEmptyMethod · 0.45

Tested by

no test coverage detected