fix: std::list -> QList

Qt6 removed Qlist::toStdList() 😭

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-07-10 15:15:25 -03:00
parent 650af5eb64
commit de9e304236
12 changed files with 28 additions and 28 deletions

View File

@ -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;

View File

@ -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);