QAbstractItemModel: Make the match() method Q_INVOKABLE
With reasoning similar to commit v5.5.0-alpha1~123 (Make some QAbstractItemModel API invokable, 2015-02-25) Change-Id: I77c72f7bb856a1eee966b45950384fe03a8eaac6 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
This commit is contained in:
parent
3f314e1607
commit
93305f3af3
@ -222,7 +222,7 @@ public:
|
||||
Q_INVOKABLE virtual Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
|
||||
virtual QModelIndex buddy(const QModelIndex &index) const;
|
||||
virtual QModelIndexList match(const QModelIndex &start, int role,
|
||||
Q_INVOKABLE virtual QModelIndexList match(const QModelIndex &start, int role,
|
||||
const QVariant &value, int hits = 1,
|
||||
Qt::MatchFlags flags =
|
||||
Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user