aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/instanceview/InstanceProxyModel.h
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-08-16 20:46:16 +0100
committerTheKodeToad <TheKodeToad@proton.me>2023-08-16 22:23:38 +0100
commit3e2733d840d24ce4f46b49bca0b8656d4d6e3d87 (patch)
tree386113207514b8071b0122b318c10439259ca83c /launcher/ui/instanceview/InstanceProxyModel.h
parent57430fd189aed592a170d597de61b3acabaaa43d (diff)
parentc88088c91a92a371a9bc2b7384c2897157772b7e (diff)
downloadPrismLauncher-3e2733d840d24ce4f46b49bca0b8656d4d6e3d87.tar.gz
PrismLauncher-3e2733d840d24ce4f46b49bca0b8656d4d6e3d87.tar.bz2
PrismLauncher-3e2733d840d24ce4f46b49bca0b8656d4d6e3d87.zip
Merge branch 'develop' into better-launch
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/ui/instanceview/InstanceProxyModel.h')
-rw-r--r--launcher/ui/instanceview/InstanceProxyModel.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/launcher/ui/instanceview/InstanceProxyModel.h b/launcher/ui/instanceview/InstanceProxyModel.h
index bba8d2b5..13fec1bc 100644
--- a/launcher/ui/instanceview/InstanceProxyModel.h
+++ b/launcher/ui/instanceview/InstanceProxyModel.h
@@ -15,21 +15,20 @@
#pragma once
-#include <QSortFilterProxyModel>
#include <QCollator>
+#include <QSortFilterProxyModel>
-class InstanceProxyModel : public QSortFilterProxyModel
-{
+class InstanceProxyModel : public QSortFilterProxyModel {
Q_OBJECT
-public:
- InstanceProxyModel(QObject *parent = 0);
+ public:
+ InstanceProxyModel(QObject* parent = 0);
-protected:
- QVariant data(const QModelIndex & index, int role) const override;
- bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
- bool subSortLessThan(const QModelIndex &left, const QModelIndex &right) const;
+ protected:
+ QVariant data(const QModelIndex& index, int role) const override;
+ bool lessThan(const QModelIndex& left, const QModelIndex& right) const override;
+ bool subSortLessThan(const QModelIndex& left, const QModelIndex& right) const;
-private:
+ private:
QCollator m_naturalSort;
};