diff options
-rw-r--r-- | src/imports/folderlistmodel/qquickfolderlistmodel.cpp | 1 | ||||
-rw-r--r-- | src/imports/folderlistmodel/qquickfolderlistmodel.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/imports/folderlistmodel/qquickfolderlistmodel.cpp b/src/imports/folderlistmodel/qquickfolderlistmodel.cpp index bb65ddbccc..032c32a241 100644 --- a/src/imports/folderlistmodel/qquickfolderlistmodel.cpp +++ b/src/imports/folderlistmodel/qquickfolderlistmodel.cpp @@ -100,6 +100,7 @@ void QQuickFolderListModelPrivate::init() q, SLOT(_q_directoryUpdated(QString, QList<FileProperty>, int, int))); q->connect(&fileInfoThread, SIGNAL(sortFinished(QList<FileProperty>)), q, SLOT(_q_sortFinished(QList<FileProperty>))); + q->connect(q, SIGNAL(rowCountChanged()), q, SIGNAL(countChanged())); } diff --git a/src/imports/folderlistmodel/qquickfolderlistmodel.h b/src/imports/folderlistmodel/qquickfolderlistmodel.h index 68541f1735..3bf9a21d49 100644 --- a/src/imports/folderlistmodel/qquickfolderlistmodel.h +++ b/src/imports/folderlistmodel/qquickfolderlistmodel.h @@ -74,7 +74,7 @@ class QQuickFolderListModel : public QAbstractListModel, public QQmlParserStatus Q_PROPERTY(bool showDirsFirst READ showDirsFirst WRITE setShowDirsFirst) Q_PROPERTY(bool showDotAndDotDot READ showDotAndDotDot WRITE setShowDotAndDotDot) Q_PROPERTY(bool showOnlyReadable READ showOnlyReadable WRITE setShowOnlyReadable) - Q_PROPERTY(int count READ count NOTIFY rowCountChanged) + Q_PROPERTY(int count READ count NOTIFY countChanged) //![class props] //![abslistmodel] @@ -149,6 +149,7 @@ public: Q_SIGNALS: void folderChanged(); void rowCountChanged() const; + void countChanged() const; //![notifier] //![class end] |