Add REVISION to the filterString property

Change-Id: I8b5474995ec64c69e16d5209442f7351c10aa73f
This commit is contained in:
Martin Klapetek 2015-02-24 13:06:12 +01:00
parent 5e53bd4d57
commit 0f3eee1bc7

View File

@ -54,7 +54,7 @@ class SortFilterModel : public QSortFilterProxyModel
/** /**
* The string for the filter, only items with their filterRole matching filterString will be displayed * The string for the filter, only items with their filterRole matching filterString will be displayed
*/ */
Q_PROPERTY(QString filterString READ filterString WRITE setFilterString NOTIFY filterStringChanged) Q_PROPERTY(QString filterString READ filterString WRITE setFilterString NOTIFY filterStringChanged REVISION 1)
/** /**
* The role of the sourceModel on which filterRegExp must be applied. * The role of the sourceModel on which filterRegExp must be applied.
@ -120,7 +120,7 @@ Q_SIGNALS:
void countChanged(); void countChanged();
void sourceModelChanged(QObject *); void sourceModelChanged(QObject *);
void filterRegExpChanged(const QString &); void filterRegExpChanged(const QString &);
void filterStringChanged(const QString &); Q_REVISION(1) void filterStringChanged(const QString &);
protected: protected:
int roleNameToId(const QString &name); int roleNameToId(const QString &name);