diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-10-25 21:43:00 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-10-25 21:43:00 +0200 |
commit | 85ecbad46755d42e3e0682dfe24e587ee3157565 (patch) | |
tree | ba41075aa69e989b981c61d7fa2510ca5b4f7210 /launcher/InstanceProxyModel.h | |
parent | 040af580701afa286b93a87e8bde42373add2bd5 (diff) | |
download | PrismLauncher-85ecbad46755d42e3e0682dfe24e587ee3157565.tar.gz PrismLauncher-85ecbad46755d42e3e0682dfe24e587ee3157565.tar.bz2 PrismLauncher-85ecbad46755d42e3e0682dfe24e587ee3157565.zip |
GH-3490 sort instances by name is now aware of numbers
Diffstat (limited to 'launcher/InstanceProxyModel.h')
-rw-r--r-- | launcher/InstanceProxyModel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/InstanceProxyModel.h b/launcher/InstanceProxyModel.h index fab6f834..baf2794b 100644 --- a/launcher/InstanceProxyModel.h +++ b/launcher/InstanceProxyModel.h @@ -1,6 +1,7 @@ #pragma once #include "groupview/GroupedProxyModel.h" +#include <QCollator> /** * A proxy model that is responsible for sorting instances into groups @@ -13,4 +14,6 @@ public: protected: virtual bool subSortLessThan(const QModelIndex &left, const QModelIndex &right) const override; +private: + QCollator m_naturalSort; }; |