27 #include <KDABLibFakes> 31 #define MAY_ALIAS __attribute__((__may_alias__)) 52 const QAbstractItemModel *m;
57 if ( !sourceIndex.isValid() )
61 Q_ASSERT( sourceIndex.model() == sourceModel() );
65 return createIndex( sourceIndex.row(), sourceIndex.column(), sourceIndex.internalPointer() );
70 if ( !sourceModel() || !proxyIndex.isValid() )
72 if ( proxyIndex.model() != this )
73 qDebug() << proxyIndex.model() <<
this;
74 Q_ASSERT( proxyIndex.model() == this );
77 QModelIndex sourceIndex;
78 KDPrivateModelIndex* hack =
reinterpret_cast<KDPrivateModelIndex*
>(&sourceIndex);
79 hack->r = proxyIndex.row();
80 hack->c = proxyIndex.column();
81 hack->p = proxyIndex.internalPointer();
82 hack->m = sourceModel();
83 Q_ASSERT( sourceIndex.isValid() );
QModelIndex mapToSource(const QModelIndex &proxyIndex) const override
QModelIndex index(int row, int col, const QModelIndex &index) const override
QModelIndex mapFromSource(const QModelIndex &sourceIndex) const override
QModelIndex parent(const QModelIndex &index) const override
Class only listed here to document inheritance of some KDChart classes.
AbstractProxyModel(QObject *parent=0)
This is basically KDAbstractProxyModel, but only the bits that we really need from it...
Class only listed here to document inheritance of some KDChart classes.