| 34 | } |
| 35 | |
| 36 | QIcon SpecialListItem::getIcon() const |
| 37 | { |
| 38 | if (itemData.count() > Id) { |
| 39 | int id = itemData.at(Id).toInt(); |
| 40 | const auto &icons = ThemeManager::instance().getCurrentTheme().readingListIcons; |
| 41 | switch (id) { |
| 42 | case 0: |
| 43 | return icons.readingListIcon; |
| 44 | case 1: |
| 45 | return icons.favoritesIcon; |
| 46 | case 2: |
| 47 | return icons.currentlyReadingIcon; |
| 48 | default: |
| 49 | break; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | QLOG_WARN() << "Icon for SpecialListItem not available"; |
| 54 | |
| 55 | return QIcon(); |
| 56 | } |
| 57 | |
| 58 | qulonglong SpecialListItem::getId() const |
| 59 | { |