diff --git a/model/foldermodel.cpp b/model/foldermodel.cpp index b0d8373..533025d 100644 --- a/model/foldermodel.cpp +++ b/model/foldermodel.cpp @@ -455,7 +455,7 @@ int FolderModel::count() const return rowCount(); } -int FolderModel::selectionCound() const +int FolderModel::selectionCount() const { return m_selectionModel->selectedIndexes().size(); } @@ -944,7 +944,7 @@ void FolderModel::selectionChanged(const QItemSelection &selected, const QItemSe updateActions(); - emit selectionCoundChanged(); + emit selectionCountChanged(); } void FolderModel::dragSelectedInternal(int x, int y) diff --git a/model/foldermodel.h b/model/foldermodel.h index b479c9e..b892699 100644 --- a/model/foldermodel.h +++ b/model/foldermodel.h @@ -50,7 +50,7 @@ class FolderModel : public QSortFilterProxyModel, public QQmlParserStatus Q_PROPERTY(bool dragging READ dragging NOTIFY draggingChanged) Q_PROPERTY(QObject *viewAdapter READ viewAdapter WRITE setViewAdapter NOTIFY viewAdapterChanged) Q_PROPERTY(bool isDesktop READ isDesktop WRITE setIsDesktop NOTIFY isDesktopChanged) - Q_PROPERTY(int selectionCound READ selectionCound NOTIFY selectionCoundChanged) + Q_PROPERTY(int selectionCount READ selectionCount NOTIFY selectionCountChanged) Q_PROPERTY(int count READ count NOTIFY countChanged) public: @@ -131,7 +131,7 @@ public: KFileItem rootItem() const; int count() const; - int selectionCound() const; + int selectionCount() const; Q_INVOKABLE QString homePath() const; Q_INVOKABLE QString desktopPath() const; @@ -193,7 +193,7 @@ signals: void draggingChanged(); void viewAdapterChanged(); void isDesktopChanged(); - void selectionCoundChanged(); + void selectionCountChanged(); void countChanged(); private slots: @@ -224,6 +224,7 @@ private: bool m_complete; bool m_isDesktop; + bool m_suffixVisible; KActionCollection m_actionCollection; QHash m_dragImages; diff --git a/qml/FolderPage.qml b/qml/FolderPage.qml index 6f68887..f37e4b9 100644 --- a/qml/FolderPage.qml +++ b/qml/FolderPage.qml @@ -150,8 +150,8 @@ Item { Label { Layout.alignment: Qt.AlignLeft font.pointSize: 10 - text: qsTr("%1 selected").arg(dirModel.selectionCound) - visible: dirModel.selectionCound >= 1 + text: qsTr("%1 selected").arg(dirModel.selectionCount) + visible: dirModel.selectionCount >= 1 } Item {