diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-02-08 22:18:32 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-02-08 22:18:32 +0100 |
commit | af33b966848687048f0a9e409444bc1b1f7d12df (patch) | |
tree | c978a58fddbcf1e6566f309f67579264ffdd4168 /logic/lists/InstanceList.cpp | |
parent | 53069205faf4063e838bab4beea5089d6ec2a0af (diff) | |
parent | aa41b891f06a629099d108ab1f4df94d1bbc828c (diff) | |
download | PrismLauncher-af33b966848687048f0a9e409444bc1b1f7d12df.tar.gz PrismLauncher-af33b966848687048f0a9e409444bc1b1f7d12df.tar.bz2 PrismLauncher-af33b966848687048f0a9e409444bc1b1f7d12df.zip |
Merge branch 'feature_groupview' into integration_derpstances_groupview
Diffstat (limited to 'logic/lists/InstanceList.cpp')
-rw-r--r-- | logic/lists/InstanceList.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/logic/lists/InstanceList.cpp b/logic/lists/InstanceList.cpp index 0d4eab95..935f9fd3 100644 --- a/logic/lists/InstanceList.cpp +++ b/logic/lists/InstanceList.cpp @@ -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, |