| 91 | } |
| 92 | |
| 93 | void 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() { |