| 137 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 138 | |
| 139 | void ThemeHandler::setCurrentTheme(const QString& name) { |
| 140 | if (!name.isEmpty()) { |
| 141 | m_pbLoadTheme->setText(i18n("Theme '%1'", name)); |
| 142 | m_pbLoadTheme->setToolTip(i18n("Theme '%1' is active. Click on the button to change the theme.", name)); |
| 143 | } else { |
| 144 | m_pbLoadTheme->setText(i18n("Theme")); |
| 145 | m_pbLoadTheme->setToolTip(i18n("No theme is active. Click on the button to select a theme.")); |
| 146 | } |
| 147 | |
| 148 | m_currentTheme = name; |
| 149 | } |
| 150 | |
| 151 | void ThemeHandler::loadSelected(const QString& name) { |
| 152 | Q_EMIT loadThemeRequested(name); |
no test coverage detected