We now have back a real BufferModel. It's basically a ProxyModel to
[quassel.git] / src / client / selectionmodelsynchronizer.h
index a655147..5cda9cc 100644 (file)
@@ -35,6 +35,7 @@ public:
   virtual ~SelectionModelSynchronizer();
 
   void addSelectionModel(MappedSelectionModel *model);
+  void addRegularSelectionModel(QItemSelectionModel *model);
   void removeSelectionModel(MappedSelectionModel *model);
 
   inline QAbstractItemModel *model() { return _model; }
@@ -43,6 +44,9 @@ private slots:
   void _mappedCurrentChanged(const QModelIndex &current);
   void _mappedSelectionChanged(const QItemSelection &selected);
 
+  void _regularCurrentChanged(const QModelIndex &newCurrent, const QModelIndex &oldCurrent);
+  void _regularSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
+
 signals:
   void select(const QItemSelection &selection, QItemSelectionModel::SelectionFlags command);
   void setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command);