1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
// qabstractproxymodel.sip generated by MetaSIP
//
// This file is part of the QtCore Python extension module.
//
// Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt5.
//
// 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 : 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);
%If (Qt_5_5_0 -)
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
%End
%If (- Qt_5_5_0)
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
%End
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;
protected slots:
%If (Qt_5_1_0 -)
void resetInternalData();
%End
signals:
void sourceModelChanged();
public:
%If (Qt_5_4_0 -)
virtual bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const;
%End
%If (Qt_5_4_0 -)
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
%End
%If (Qt_5_4_0 -)
virtual Qt::DropActions supportedDragActions() const;
%End
};
|