| 149 | } |
| 150 | |
| 151 | void 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 | |
| 171 | void ThemeHandler::showPanel() { |
| 172 | #ifndef SDK |
nothing calls this directly
no test coverage detected