X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.h;h=37f8916c1cfd876a2104af5638cf152f740a0796;hp=3126f737b909e68f378c54115fcbae368b882bbd;hb=de6fd75928284a7c8788e00a36e5de7e64b9e168;hpb=600a5683c1a8e679b7b63a00d5b1211b5b9771c7 diff --git a/src/client/buffermodel.h b/src/client/buffermodel.h index 3126f737..37f8916c 100644 --- a/src/client/buffermodel.h +++ b/src/client/buffermodel.h @@ -45,12 +45,15 @@ public: 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;