QModelIndex LiPivotTableProxyModel::mapToSource(const QModelIndex &proxyIndex) const
{
return (sourceModel() && proxyIndex.isValid()) ? sourceModel()->index(proxyIndex.row(), proxyIndex.column(), proxyIndex.parent()) : QModelIndex();
}
QModelIndex LiPivotTableProxyModel::mapFromSource(const QModelIndex &sourceIndex) const
{
return index(sourceIndex.row(), sourceIndex.column(), sourceIndex.parent());
}
QModelIndex LiPivotTableProxyModel::index(int row, int column, const QModelIndex &parent) const
{
Q_UNUSED(parent);
return createIndex(row, column, row);
}
QModelIndex LiPivotTableProxyModel:
arent(const QModelIndex &child) const
{
Q_UNUSED(child);
return QModelIndex();
}
Bookmarks