void synchronizeSelectionModel(MappedSelectionModel *selectionModel);
void synchronizeView(QAbstractItemView *view);
- QModelIndex currentIndex();
+ inline QModelIndex currentIndex() { return standardSelectionModel()->currentIndex(); }
+
+public slots:
void setCurrentIndex(const QModelIndex &newCurrent);
+ void switchToBuffer(const BufferId &bufferId);
+ void switchToBufferIndex(const QModelIndex &bufferIdx);
private slots:
void debug_currentChanged(QModelIndex current, QModelIndex previous);
- void debug_selectionChanged(QItemSelection current , QItemSelection previous);
private:
SelectionModelSynchronizer _selectionModelSynchronizer;