MCPcopy Create free account
hub / github.com/YACReader/yacreader / getIcon

Method getIcon

YACReaderLibrary/db/reading_list_item.cpp:36–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36QIcon 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
58qulonglong SpecialListItem::getId() const
59{

Callers 2

setupAddToSubmenuMethod · 0.45
dataMethod · 0.45

Calls 5

QIconClass · 0.85
toLowerMethod · 0.80
toStringMethod · 0.80
containsMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected