aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/folderlistmodel/qquickfolderlistmodel.h
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2018-10-11 14:47:54 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2018-10-19 12:03:39 +0000
commit4d8cdc7d69594602246807097b92f72b42f4f6e9 (patch)
treee7dcac903bf1ab1627dc1ad43552a6b1bf1ca58f /src/imports/folderlistmodel/qquickfolderlistmodel.h
parenta9559a8b84ec221550512fd7ff50f6fc5a569c59 (diff)
Add sortCaseSensitive property so the sorting can ignore the case
Change-Id: Id308272cc59eca8c95f1386db8cd64f266124579 Fixes: QTBUG-48757 Fixes: QTBUG-70212 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/imports/folderlistmodel/qquickfolderlistmodel.h')
-rw-r--r--src/imports/folderlistmodel/qquickfolderlistmodel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/imports/folderlistmodel/qquickfolderlistmodel.h b/src/imports/folderlistmodel/qquickfolderlistmodel.h
index a449f0dd0f..cc03ff441b 100644
--- a/src/imports/folderlistmodel/qquickfolderlistmodel.h
+++ b/src/imports/folderlistmodel/qquickfolderlistmodel.h
@@ -76,6 +76,7 @@ class QQuickFolderListModel : public QAbstractListModel, public QQmlParserStatus
Q_PROPERTY(bool caseSensitive READ caseSensitive WRITE setCaseSensitive REVISION 2)
Q_PROPERTY(int count READ count NOTIFY countChanged)
Q_PROPERTY(Status status READ status NOTIFY statusChanged REVISION 11)
+ Q_PROPERTY(bool sortCaseSensitive READ sortCaseSensitive WRITE setSortCaseSensitive REVISION 12)
//![class props]
//![abslistmodel]
@@ -142,6 +143,8 @@ public:
enum Status { Null, Ready, Loading };
Q_ENUM(Status)
Status status() const;
+ bool sortCaseSensitive() const;
+ void setSortCaseSensitive(bool on);
//![prop funcs]
Q_INVOKABLE bool isFolder(int index) const;