From be511a719851c14c5ea5c1479ed2d814fbd3a8e6 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 20 May 2017 12:03:33 +0200 Subject: Get the folder name in the status bar --- framework/src/domain/folderlistmodel.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'framework/src/domain/folderlistmodel.h') diff --git a/framework/src/domain/folderlistmodel.h b/framework/src/domain/folderlistmodel.h index 8f157ca2..0e412202 100644 --- a/framework/src/domain/folderlistmodel.h +++ b/framework/src/domain/folderlistmodel.h @@ -34,6 +34,7 @@ class FolderListModel : public QSortFilterProxyModel Q_OBJECT Q_PROPERTY (QVariant accountId READ accountId WRITE setAccountId) + Q_PROPERTY (QVariant folderId READ folderId WRITE setFolderId) public: enum Status { @@ -63,6 +64,9 @@ public: void setAccountId(const QVariant &accountId); QVariant accountId() const; + + void setFolderId(const QVariant &folderId); + QVariant folderId() const; protected: bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE; -- cgit v1.2.3