aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/modplatform/ResourceModel.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-15 10:36:09 +0200
committerGitHub <noreply@github.com>2023-08-15 10:36:09 +0200
commit4b06255cc26933379107745d95f72097737d2a9b (patch)
tree60e00c8389bb2d8e4be492531beb788a253d1b6a /launcher/ui/pages/modplatform/ResourceModel.h
parent3aba7f8fec45c7c87be486d8f6b5c96f69facf93 (diff)
parent1939e3e6ed3d2d2d4199d90154333cc8892eafeb (diff)
downloadPrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.tar.gz
PrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.tar.bz2
PrismLauncher-4b06255cc26933379107745d95f72097737d2a9b.zip
Merge pull request #1486 from PrismLauncher/staging
Diffstat (limited to 'launcher/ui/pages/modplatform/ResourceModel.h')
-rw-r--r--launcher/ui/pages/modplatform/ResourceModel.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/ui/pages/modplatform/ResourceModel.h b/launcher/ui/pages/modplatform/ResourceModel.h
index 6533d9c6..cc813d6e 100644
--- a/launcher/ui/pages/modplatform/ResourceModel.h
+++ b/launcher/ui/pages/modplatform/ResourceModel.h
@@ -42,7 +42,10 @@ class ResourceModel : public QAbstractListModel {
[[nodiscard]] virtual auto debugName() const -> QString;
[[nodiscard]] virtual auto metaEntryBase() const -> QString = 0;
- [[nodiscard]] inline int rowCount(const QModelIndex& parent) const override { return parent.isValid() ? 0 : m_packs.size(); }
+ [[nodiscard]] inline int rowCount(const QModelIndex& parent) const override
+ {
+ return parent.isValid() ? 0 : static_cast<int>(m_packs.size());
+ }
[[nodiscard]] inline int columnCount(const QModelIndex& parent) const override { return parent.isValid() ? 0 : 1; }
[[nodiscard]] inline auto flags(const QModelIndex& index) const -> Qt::ItemFlags override { return QAbstractListModel::flags(index); }