X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fmappedselectionmodel.h;h=9641658a2902b728fd6644603ba78eace3cd6ccb;hp=be29aee686c3339f6b6fec06761b8a7db1a605fe;hb=8aceefa7a5b9910c93bdf05fdc86d875193d6782;hpb=d6b056e936ec441258d291b7a8af7b83f9f53016 diff --git a/src/client/mappedselectionmodel.h b/src/client/mappedselectionmodel.h index be29aee6..9641658a 100644 --- a/src/client/mappedselectionmodel.h +++ b/src/client/mappedselectionmodel.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-07 by the Quassel IRC Team * + * Copyright (C) 2005-08 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -33,35 +33,13 @@ class MappedSelectionModel : public QItemSelectionModel { public: MappedSelectionModel(QAbstractItemModel *model = 0); - virtual ~MappedSelectionModel(); - inline bool isProxyModel() const { return _isProxyModel; } - - const QAbstractItemModel *baseModel() const; - const QAbstractProxyModel *proxyModel() const; - QModelIndex mapFromSource(const QModelIndex &sourceIndex); - QItemSelection mapFromSource(const QItemSelection &sourceSelection); - - QModelIndex mapToSource(const QModelIndex &proxyIndex); - QItemSelection mapToSource(const QItemSelection &proxySelection); + QItemSelection mapSelectionFromSource(const QItemSelection &sourceSelection); public slots: - void mappedSelect(const QModelIndex &index, QItemSelectionModel::SelectionFlags command); void mappedSelect(const QItemSelection &selection, QItemSelectionModel::SelectionFlags command); void mappedSetCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command); - -private slots: - void _currentChanged(const QModelIndex ¤t, const QModelIndex &previous); - void _selectionChanged(const QItemSelection &selected, const QItemSelection &deselected); - -signals: - void mappedCurrentChanged(const QModelIndex ¤t); - void mappedSelectionChanged(const QItemSelection &selected); - -private: - bool _isProxyModel; - }; #endif