diff --git a/GUI/coregui/Views/TestView.cpp b/GUI/coregui/Views/TestView.cpp index c6a9d59179adf63b040700eef0bb70a1c85beb11..2975be6c5d0ab709eb2de3fd908b9aa56a2e1763 100644 --- a/GUI/coregui/Views/TestView.cpp +++ b/GUI/coregui/Views/TestView.cpp @@ -220,21 +220,6 @@ void TestProxyModel::setSourceModel(QAbstractItemModel *source) this, SIGNAL(layoutChanged())); } -QModelIndex TestProxyModel::mapFromSource(const QModelIndex &sourceIndex) const -{ - return createIndex(sourceIndex.row(), sourceIndex.column(), sourceIndex.internalPointer()); -} - -QModelIndex TestProxyModel::mapToSource(const QModelIndex &proxyIndex) const -{ - ParameterizedItem *item = static_cast<ParameterizedItem*>(proxyIndex.internalPointer()); - if (!item) { - return QModelIndex(); - } - return m_source->index(proxyIndex.row(), proxyIndex.column(), - item->parent()->index()); -} - QModelIndex TestProxyModel::index(int row, int column, const QModelIndex &parent) const { const QModelIndex sourceParent = mapToSource(parent); diff --git a/GUI/coregui/Views/TestView.h b/GUI/coregui/Views/TestView.h index 729d071494a495798b732062bb38b4e12a3eb4de..2b878a56e9a43954c30ebb591d1364d7c2b1f76c 100644 --- a/GUI/coregui/Views/TestView.h +++ b/GUI/coregui/Views/TestView.h @@ -49,8 +49,6 @@ class TestProxyModel : public QIdentityProxyModel public: TestProxyModel(QObject *parent = 0); void setSourceModel(QAbstractItemModel *source); - QModelIndex mapFromSource(const QModelIndex& sourceIndex) const; - QModelIndex mapToSource(const QModelIndex& proxyIndex) const; QModelIndex index(int row, int column, const QModelIndex& parent) const; QModelIndex parent(const QModelIndex& child) const; int rowCount(const QModelIndex& parent) const;