qtransposeproxymodel.sip 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // qtransposeproxymodel.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtCore Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. class QTransposeProxyModel : public QAbstractProxyModel
  22. {
  23. %TypeHeaderCode
  24. #include <qtransposeproxymodel.h>
  25. %End
  26. public:
  27. explicit QTransposeProxyModel(QObject *parent /TransferThis/ = 0);
  28. virtual ~QTransposeProxyModel();
  29. virtual void setSourceModel(QAbstractItemModel *newSourceModel /KeepReference/);
  30. virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
  31. virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
  32. virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
  33. virtual bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role = Qt::EditRole);
  34. virtual bool setItemData(const QModelIndex &index, const QMap<int, QVariant> &roles);
  35. virtual QSize span(const QModelIndex &index) const;
  36. virtual QMap<int, QVariant> itemData(const QModelIndex &index) const;
  37. virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const;
  38. virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const;
  39. virtual QModelIndex parent(const QModelIndex &index) const;
  40. virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
  41. virtual bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex());
  42. virtual bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex());
  43. virtual bool moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild);
  44. virtual bool insertColumns(int column, int count, const QModelIndex &parent = QModelIndex());
  45. virtual bool removeColumns(int column, int count, const QModelIndex &parent = QModelIndex());
  46. virtual bool moveColumns(const QModelIndex &sourceParent, int sourceColumn, int count, const QModelIndex &destinationParent, int destinationChild);
  47. virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
  48. };