Mercurial > minori
diff src/gui/pages/anime_list.cc @ 178:bc8d2ccff09c
win32/dark: use existing STL classes for dwmapi
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 04 Dec 2023 11:51:30 -0500 |
parents | 39521c47c7a3 |
children | 62e336597bb7 |
line wrap: on
line diff
--- a/src/gui/pages/anime_list.cc Fri Dec 01 13:32:29 2023 -0500 +++ b/src/gui/pages/anime_list.cc Mon Dec 04 11:51:30 2023 -0500 @@ -17,6 +17,7 @@ #include "gui/dialog/information.h" #include "gui/translate/anime.h" #include "services/services.h" + #include <QDebug> #include <QHBoxLayout> #include <QHeaderView> @@ -27,6 +28,7 @@ #include <QStylePainter> #include <QStyledItemDelegate> #include <QThreadPool> + #include <set> AnimeListPageSortFilter::AnimeListPageSortFilter(QObject* parent) : QSortFilterProxyModel(parent) { @@ -342,8 +344,8 @@ void AnimeListPage::RefreshTabs() { for (unsigned int i = 0; i < sort_models.size(); i++) - tab_bar->setTabText(i, Strings::ToQString(Translate::ToString(Anime::ListStatuses[i])) + " (" + - QString::number(Anime::db.GetListsAnimeAmount(Anime::ListStatuses[i])) + ")"); + tab_bar->setTabText(i, Strings::ToQString(Translate::ToString(Anime::ListStatuses[i]) + " (" + + std::to_string(Anime::db.GetListsAnimeAmount(Anime::ListStatuses[i])) + ")")); } void AnimeListPage::Refresh() {