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

Method applyClicked

src/frontend/widgets/ThemesWidget.cpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void ThemesWidget::applyClicked(const QModelIndex& index) {
94 const QString& themeName = index.data(Qt::DisplayRole).toString();
95
96 // TODO: activate this later
97 // if (themeName == "file_download_theme")
98 // this->downloadThemes();
99 // else
100
101 if (index.row() == 0)
102 Q_EMIT themeSelected(QString()); // item with the string "None" was selected -> no theme
103 else
104 Q_EMIT themeSelected(themeName);
105}
106
107// TODO: activate this later
108// void ThemesWidget::downloadThemes() {

Callers

nothing calls this directly

Calls 4

QStringClass · 0.50
toStringMethod · 0.45
dataMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected