fix: std::list -> QList
Qt6 removed Qlist::toStdList() 😭 Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
@ -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;
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user