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>bb10
parent
3f314e1607
commit
93305f3af3
|
|
@ -222,10 +222,10 @@ 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,
|
||||
const QVariant &value, int hits = 1,
|
||||
Qt::MatchFlags flags =
|
||||
Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const;
|
||||
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;
|
||||
virtual QSize span(const QModelIndex &index) const;
|
||||
|
||||
virtual QHash<int,QByteArray> roleNames() const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue