QAbstractItemModel: Add revisions to new methods
These methods show up in QML-exposed types. They should be revisioned in order to keep those types backwards-compatible. Change-Id: I8e826dc2e7db49d8abe69f67605dfb1991855b96 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: David Faure <david.faure@kdab.com> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> (cherry picked from commit c52e0a9582a0a06999d480b969b3b2895fe92217) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
4c74314b6b
commit
834fc24b18
@ -273,28 +273,28 @@ public:
|
||||
virtual Qt::DropActions supportedDropActions() const;
|
||||
virtual Qt::DropActions supportedDragActions() const;
|
||||
|
||||
Q_INVOKABLE virtual bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE virtual bool insertColumns(int column, int count, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE virtual bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE virtual bool removeColumns(int column, int count, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE virtual bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count,
|
||||
Q_INVOKABLE Q_REVISION(6, 4) virtual bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE Q_REVISION(6, 4) virtual bool insertColumns(int column, int count, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE Q_REVISION(6, 4) virtual bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE Q_REVISION(6, 4) virtual bool removeColumns(int column, int count, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE Q_REVISION(6, 4) virtual bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count,
|
||||
const QModelIndex &destinationParent, int destinationChild);
|
||||
Q_INVOKABLE virtual bool moveColumns(const QModelIndex &sourceParent, int sourceColumn, int count,
|
||||
Q_INVOKABLE Q_REVISION(6, 4) virtual bool moveColumns(const QModelIndex &sourceParent, int sourceColumn, int count,
|
||||
const QModelIndex &destinationParent, int destinationChild);
|
||||
|
||||
Q_INVOKABLE inline bool insertRow(int row, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE inline bool insertColumn(int column, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE inline bool removeRow(int row, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE inline bool removeColumn(int column, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE inline bool moveRow(const QModelIndex &sourceParent, int sourceRow,
|
||||
Q_INVOKABLE Q_REVISION(6, 4) inline bool insertRow(int row, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE Q_REVISION(6, 4) inline bool insertColumn(int column, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE Q_REVISION(6, 4) inline bool removeRow(int row, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE Q_REVISION(6, 4) inline bool removeColumn(int column, const QModelIndex &parent = QModelIndex());
|
||||
Q_INVOKABLE Q_REVISION(6, 4) inline bool moveRow(const QModelIndex &sourceParent, int sourceRow,
|
||||
const QModelIndex &destinationParent, int destinationChild);
|
||||
Q_INVOKABLE inline bool moveColumn(const QModelIndex &sourceParent, int sourceColumn,
|
||||
Q_INVOKABLE Q_REVISION(6, 4) inline bool moveColumn(const QModelIndex &sourceParent, int sourceColumn,
|
||||
const QModelIndex &destinationParent, int destinationChild);
|
||||
|
||||
Q_INVOKABLE virtual void fetchMore(const QModelIndex &parent);
|
||||
Q_INVOKABLE virtual bool canFetchMore(const QModelIndex &parent) const;
|
||||
Q_INVOKABLE virtual Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
Q_INVOKABLE virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
|
||||
Q_INVOKABLE Q_REVISION(6, 4) virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
|
||||
virtual QModelIndex buddy(const QModelIndex &index) const;
|
||||
Q_INVOKABLE virtual QModelIndexList match(const QModelIndex &start, int role,
|
||||
const QVariant &value, int hits = 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user