Mercurial > minori
comparison src/gui/pages/anime_list.cpp @ 19:d05b1be2f3a6
anime_list.cpp: fix build failures on linux
For some reason conversion from uint64_t to QVariant is
ambiguous on Linux and ONLY Linux.
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Tue, 19 Sep 2023 23:10:49 -0400 |
| parents | cde8f67a7c7d |
| children | d0adc4aedfc8 |
comparison
equal
deleted
inserted
replaced
| 18:28d8f4c0ae12 | 19:d05b1be2f3a6 |
|---|---|
| 11 #include "gui/pages/anime_list.h" | 11 #include "gui/pages/anime_list.h" |
| 12 #include "core/anime.h" | 12 #include "core/anime.h" |
| 13 #include "core/anime_db.h" | 13 #include "core/anime_db.h" |
| 14 #include "core/session.h" | 14 #include "core/session.h" |
| 15 #include "core/time.h" | 15 #include "core/time.h" |
| 16 #include "core/array.h" | |
| 16 #include "gui/dialog/information.h" | 17 #include "gui/dialog/information.h" |
| 17 #include "gui/translate/anime.h" | 18 #include "gui/translate/anime.h" |
| 18 #include "services/anilist.h" | 19 #include "services/anilist.h" |
| 19 #include <QDebug> | 20 #include <QDebug> |
| 20 #include <QHBoxLayout> | 21 #include <QHBoxLayout> |
| 163 switch (index.column()) { | 164 switch (index.column()) { |
| 164 case AL_PROGRESS: return list[index.row()].GetUserProgress(); | 165 case AL_PROGRESS: return list[index.row()].GetUserProgress(); |
| 165 case AL_TYPE: return static_cast<int>(list[index.row()].GetFormat()); | 166 case AL_TYPE: return static_cast<int>(list[index.row()].GetFormat()); |
| 166 case AL_SEASON: return list[index.row()].GetAirDate().GetAsQDate(); | 167 case AL_SEASON: return list[index.row()].GetAirDate().GetAsQDate(); |
| 167 case AL_AVG_SCORE: return list[index.row()].GetAudienceScore(); | 168 case AL_AVG_SCORE: return list[index.row()].GetAudienceScore(); |
| 168 case AL_UPDATED: return list[index.row()].GetUserTimeUpdated(); | 169 case AL_UPDATED: return QVariant::fromValue(list[index.row()].GetUserTimeUpdated()); |
| 169 default: return data(index, Qt::DisplayRole); | 170 default: return data(index, Qt::DisplayRole); |
| 170 } | 171 } |
| 171 break; | 172 break; |
| 172 case Qt::TextAlignmentRole: | 173 case Qt::TextAlignmentRole: |
| 173 switch (index.column()) { | 174 switch (index.column()) { |
