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

Method setCurrentTheme

src/frontend/ThemeHandler.cpp:139–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
138
139void 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
151void ThemeHandler::loadSelected(const QString& name) {
152 Q_EMIT loadThemeRequested(name);

Callers 3

loadSelectedMethod · 0.95
setWorksheetsMethod · 0.80
setPlotsMethod · 0.80

Calls 3

setToolTipMethod · 0.80
isEmptyMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected