comparison src/gui/pages/anime_list.cc @ 106:c8c72278f6fd

*: #if -> #ifdef, remove outdated comments in sys/win32/dark_theme.cc
author Paper <mrpapersonic@gmail.com>
date Sun, 05 Nov 2023 04:01:58 -0500
parents 6d8da6e64d61
children 2004b41d4a59
comparison
equal deleted inserted replaced
105:6d8da6e64d61 106:c8c72278f6fd
38 } 38 }
39 39
40 void AnimeListPageDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, 40 void AnimeListPageDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option,
41 const QModelIndex& index) const { 41 const QModelIndex& index) const {
42 switch (index.column()) { 42 switch (index.column()) {
43 #if 0 43 #if 0 /* I'm just commenting this out for now. Seems like a huge headache to do with Qt. */
44 case AnimeListPageModel::AL_PROGRESS: { 44 case AnimeListPageModel::AL_PROGRESS: {
45 const int progress = static_cast<int>(index.data(Qt::UserRole).toReal()); 45 const int progress = static_cast<int>(index.data(Qt::UserRole).toReal());
46 const int episodes = 46 const int episodes =
47 static_cast<int>(index.siblingAtColumn(AnimeListPageModel::AL_EPISODES).data(Qt::UserRole).toReal()); 47 static_cast<int>(index.siblingAtColumn(AnimeListPageModel::AL_EPISODES).data(Qt::UserRole).toReal());
48 48