diff options
author | flow <flowlnlnln@gmail.com> | 2022-07-10 15:15:25 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-07-17 11:33:45 -0300 |
commit | de9e304236ac0c11dd2b6bfb8b6f55943349c0e9 (patch) | |
tree | 1dd0624ef00fb1f7b82bf68a668ac0271f03d69b /launcher/minecraft | |
parent | 650af5eb64d3c560044cf1e806159f1d64985aa6 (diff) | |
download | PrismLauncher-de9e304236ac0c11dd2b6bfb8b6f55943349c0e9.tar.gz PrismLauncher-de9e304236ac0c11dd2b6bfb8b6f55943349c0e9.tar.bz2 PrismLauncher-de9e304236ac0c11dd2b6bfb8b6f55943349c0e9.zip |
fix: std::list -> QList
Qt6 removed Qlist::toStdList() :sob:
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/minecraft')
-rw-r--r-- | launcher/minecraft/mod/ModFolderModel.cpp | 4 | ||||
-rw-r--r-- | launcher/minecraft/mod/ModFolderModel.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/launcher/minecraft/mod/ModFolderModel.cpp b/launcher/minecraft/mod/ModFolderModel.cpp index e0391c01..c4449b2a 100644 --- a/launcher/minecraft/mod/ModFolderModel.cpp +++ b/launcher/minecraft/mod/ModFolderModel.cpp @@ -271,9 +271,9 @@ bool ModFolderModel::isValid() return m_dir.exists() && m_dir.isReadable(); } -auto ModFolderModel::selectedMods(QModelIndexList& indexes) -> std::list<Mod::Ptr> +auto ModFolderModel::selectedMods(QModelIndexList& indexes) -> QList<Mod::Ptr> { - std::list<Mod::Ptr> selected_mods; + QList<Mod::Ptr> selected_mods; for (auto i : indexes) { if(i.column() != 0) continue; diff --git a/launcher/minecraft/mod/ModFolderModel.h b/launcher/minecraft/mod/ModFolderModel.h index 04681879..a7d3ece0 100644 --- a/launcher/minecraft/mod/ModFolderModel.h +++ b/launcher/minecraft/mod/ModFolderModel.h @@ -146,7 +146,7 @@ public: return mods; } - auto selectedMods(QModelIndexList& indexes) -> std::list<Mod::Ptr>; + auto selectedMods(QModelIndexList& indexes) -> QList<Mod::Ptr>; public slots: void disableInteraction(bool disabled); |