| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- // qrangemodel.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.
- %If (Qt_6_10_0 -)
- class QRangeModel : public QAbstractItemModel /ExportDerivedLocally/
- {
- %TypeHeaderCode
- #include <qrangemodel.h>
- #include "qpycore_qrangemodel.h"
- %End
- %TypeDerivedCode
- sipQRangeModel(const QVariantList &range, QObject *parent) : QRangeModel(range, parent) {}
- sipQRangeModel(QVariantList &range, QObject *parent) : QRangeModel(range, parent) {}
- sipQRangeModel(const QList<QVariantList> &range, QObject *parent) : QRangeModel(range, parent) {}
- sipQRangeModel(QList<QVariantList> &range, QObject *parent) : QRangeModel(range, parent) {}
- %End
- public:
- QRangeModel(QPyAbstractRange *range /Transfer/, QObject *parent /TransferThis/ = 0) /HoldGIL, NoDerived/;
- %MethodCode
- sipCpp = a0->create(a1);
-
- if (!sipCpp)
- sipError = sipErrorFail;
- %End
- virtual ~QRangeModel();
- QModelIndex index(int row, int column, const QModelIndex &parent = {}) const final;
- QModelIndex parent(const QModelIndex &child) const final;
- QModelIndex sibling(int row, int column, const QModelIndex &index) const final;
- int rowCount(const QModelIndex &parent = {}) const final;
- int columnCount(const QModelIndex &parent = {}) const final;
- virtual Qt::ItemFlags flags(const QModelIndex &index) const;
- virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
- virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &data, int role = Qt::EditRole);
- virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
- virtual bool setData(const QModelIndex &index, const QVariant &data, int role = Qt::EditRole);
- virtual QMap<int, QVariant> itemData(const QModelIndex &index) const;
- virtual bool setItemData(const QModelIndex &index, const QMap<int, QVariant> &data);
- virtual bool clearItemData(const QModelIndex &index);
- bool insertColumns(int column, int count, const QModelIndex &parent = {}) final;
- bool removeColumns(int column, int count, const QModelIndex &parent = {}) final;
- bool moveColumns(const QModelIndex &sourceParent, int sourceColumn, int count, const QModelIndex &destParent, int destColumn) final;
- bool insertRows(int row, int count, const QModelIndex &parent = {}) final;
- bool removeRows(int row, int count, const QModelIndex &parent = {}) final;
- bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destParent, int destRow) final;
- virtual QHash<int, QByteArray> roleNames() const;
- void setRoleNames(const QHash<int, QByteArray> &names);
- void resetRoleNames();
- virtual bool canFetchMore(const QModelIndex &parent) const;
- virtual void fetchMore(const QModelIndex &parent);
- bool hasChildren(const QModelIndex &parent = QModelIndex()) const final;
- virtual QModelIndex buddy(const QModelIndex &index) const;
- 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 QMimeData *mimeData(const QModelIndexList &indexes) const;
- virtual QStringList mimeTypes() const;
- virtual QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits, Qt::MatchFlags flags) const;
- virtual void multiData(const QModelIndex &index, QModelRoleDataSpan roleDataSpan) const;
- virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
- virtual QSize span(const QModelIndex &index) const;
- virtual Qt::DropActions supportedDragActions() const;
- virtual Qt::DropActions supportedDropActions() const;
- signals:
- void roleNamesChanged();
- protected slots:
- virtual void resetInternalData();
- protected:
- virtual bool event(QEvent *);
- virtual bool eventFilter(QObject *, QEvent *);
- public:
- %If (Qt_6_11_0 -)
- enum class AutoConnectPolicy
- {
- None,
- Full,
- OnRead,
- };
- %End
- %If (Qt_6_11_0 -)
- QRangeModel::AutoConnectPolicy autoConnectPolicy() const;
- %End
- %If (Qt_6_11_0 -)
- void setAutoConnectPolicy(QRangeModel::AutoConnectPolicy policy);
- %End
- signals:
- %If (Qt_6_11_0 -)
- void autoConnectPolicyChanged(QRangeModel::AutoConnectPolicy policy);
- %End
- };
- %End
|