GH-1635 add filter bar to mod list pages
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
@@ -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();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user