| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- // qabstractproxymodel.sip generated by MetaSIP
- //
- // This file is part of the QtCore Python extension module.
- //
- // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
- //
- // This file is part of PyQt6.
- //
- // This file may be used under the terms of the GNU General Public License
- // version 3.0 as published by the Free Software Foundation and appearing in
- // the file LICENSE included in the packaging of this file. Please review the
- // following information to ensure the GNU General Public License version 3.0
- // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
- //
- // If you do not wish to use this file under the terms of the GPL version 3.0
- // then you may purchase a commercial license. For more information contact
- // info@riverbankcomputing.com.
- //
- // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
- // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- class QAbstractProxyModel : public QAbstractItemModel
- {
- %TypeHeaderCode
- #include <qabstractproxymodel.h>
- %End
- public:
- explicit QAbstractProxyModel(QObject *parent /TransferThis/ = 0);
- virtual ~QAbstractProxyModel();
- virtual void setSourceModel(QAbstractItemModel *sourceModel /KeepReference/);
- QAbstractItemModel *sourceModel() const;
- virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const = 0;
- virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const = 0;
- virtual QItemSelection mapSelectionToSource(const QItemSelection &selection) const;
- virtual QItemSelection mapSelectionFromSource(const QItemSelection &selection) const;
- virtual bool submit();
- virtual void revert();
- virtual QVariant data(const QModelIndex &proxyIndex, int role = Qt::DisplayRole) const;
- virtual bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);
- virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
- virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role = Qt::EditRole);
- virtual QMap<int, QVariant> itemData(const QModelIndex &index) const;
- virtual Qt::ItemFlags flags(const QModelIndex &index) const;
- virtual bool setItemData(const QModelIndex &index, const QMap<int, QVariant> &roles);
- virtual QModelIndex buddy(const QModelIndex &index) const;
- virtual bool canFetchMore(const QModelIndex &parent) const;
- virtual void fetchMore(const QModelIndex &parent);
- virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
- virtual QSize span(const QModelIndex &index) const;
- virtual bool hasChildren(const QModelIndex &parent = QModelIndex()) const;
- virtual QMimeData *mimeData(const QModelIndexList &indexes) const /TransferBack/;
- virtual QStringList mimeTypes() const;
- virtual Qt::DropActions supportedDropActions() const;
- virtual QModelIndex sibling(int row, int column, const QModelIndex &idx) const;
- signals:
- void sourceModelChanged();
- public:
- virtual bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const;
- virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
- virtual Qt::DropActions supportedDragActions() const;
- virtual bool clearItemData(const QModelIndex &index);
- virtual QHash<int, QByteArray> roleNames() const;
- };
|