// qrangemodel.sip generated by MetaSIP // // This file is part of the QtCore Python extension module. // // Copyright (c) 2025 Riverbank Computing Limited // // 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 #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 &range, QObject *parent) : QRangeModel(range, parent) {} sipQRangeModel(QList &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 itemData(const QModelIndex &index) const; virtual bool setItemData(const QModelIndex &index, const QMap &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 roleNames() const; void setRoleNames(const QHash &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 *); }; %End