GH-1635 add filter bar to mod list pages

This commit is contained in:
Petr Mrázek
2016-08-04 21:54:25 +02:00
parent 42a98c3661
commit eec87db86a
5 changed files with 96 additions and 26 deletions

View File

@ -199,6 +199,17 @@ bool ModList::deleteMods(int first, int last)
return true;
}
bool ModList::deleteMods(const QVector<int> &indexes)
{
for (auto i: indexes)
{
Mod &m = mods[i];
m.destroy();
}
emit changed();
return true;
}
int ModList::columnCount(const QModelIndex &parent) const
{
return 3;

View File

@ -89,6 +89,9 @@ public:
/// Deletes all the selected mods
virtual bool deleteMods(int first, int last);
/// Deletes all the selected mods
virtual bool deleteMods(const QVector<int> &indexes);
void startWatching();
void stopWatching();