mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
Basic 1.6 mod management (no jar mods)
This commit is contained in:
parent
aa8766581e
commit
5ff6fbf464
22 changed files with 321 additions and 396 deletions
17
gui/ModEditDialogCommon.cpp
Normal file
17
gui/ModEditDialogCommon.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "ModEditDialogCommon.h"
|
||||
|
||||
bool lastfirst (QModelIndexList & list, int & first, int & last)
|
||||
{
|
||||
if(!list.size())
|
||||
return false;
|
||||
first = last = list[0].row();
|
||||
for(auto item: list)
|
||||
{
|
||||
int row = item.row();
|
||||
if(row < first)
|
||||
first = row;
|
||||
if(row > last)
|
||||
last = row;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue