mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-04 04:16:57 +03:00
Pave.
This commit is contained in:
parent
b82eb5873e
commit
7839c4ecc0
21 changed files with 41 additions and 514 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#include "logic/BaseInstance.h"
|
||||
#include "logic/InstanceFactory.h"
|
||||
#include "logger/QsLog.h"
|
||||
#include <gui/groupview/GroupView.h>
|
||||
|
||||
const static int GROUP_FILE_FORMAT_VERSION = 1;
|
||||
|
||||
|
|
@ -96,8 +97,7 @@ QVariant InstanceList::data(const QModelIndex &index, int role) const
|
|||
return MMC->icons()->getIcon(key);
|
||||
}
|
||||
// for now.
|
||||
case KCategorizedSortFilterProxyModel::CategorySortRole:
|
||||
case KCategorizedSortFilterProxyModel::CategoryDisplayRole:
|
||||
case GroupViewRoles::GroupRole:
|
||||
{
|
||||
return pdata->group();
|
||||
}
|
||||
|
|
@ -585,10 +585,8 @@ void InstanceList::propertiesChanged(BaseInstance *inst)
|
|||
}
|
||||
|
||||
InstanceProxyModel::InstanceProxyModel(QObject *parent)
|
||||
: KCategorizedSortFilterProxyModel(parent)
|
||||
: GroupedProxyModel(parent)
|
||||
{
|
||||
// disable since by default we are globally sorting by date:
|
||||
setCategorizedModel(true);
|
||||
}
|
||||
|
||||
bool InstanceProxyModel::subSortLessThan(const QModelIndex &left,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue