X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fmappedselectionmodel.h;h=9641658a2902b728fd6644603ba78eace3cd6ccb;hp=a59ea253f00062a7668c51e4890edc9c7c6290e2;hb=8aceefa7a5b9910c93bdf05fdc86d875193d6782;hpb=2f05c5d7e94d5e96d2b4bae59140fd3b60a7a62f diff --git a/src/client/mappedselectionmodel.h b/src/client/mappedselectionmodel.h index a59ea253..9641658a 100644 --- a/src/client/mappedselectionmodel.h +++ b/src/client/mappedselectionmodel.h @@ -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 mapSelectionFromSource(const QItemSelection &sourceSelection); - - QModelIndex mapToSource(const QModelIndex &proxyIndex); - QItemSelection mapSelectionToSource(const QItemSelection &proxySelection); 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