X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.h;fp=src%2Fclient%2Fbuffermodel.h;h=7c00ea4f7174341efce78a54baf165b8feac22ec;hb=2a7318219cc91be4bc50d2cef605d216834d1687;hp=4794afeb8f9c41bd22c0776c3b1ffee378eb876d;hpb=332069a1830ed3a055ac6f2d7661bae1cc83e40c;p=quassel.git diff --git a/src/client/buffermodel.h b/src/client/buffermodel.h index 4794afeb..7c00ea4f 100644 --- a/src/client/buffermodel.h +++ b/src/client/buffermodel.h @@ -45,8 +45,10 @@ public: void synchronizeSelectionModel(MappedSelectionModel *selectionModel); void synchronizeView(QAbstractItemView *view); +public slots: inline QModelIndex currentIndex() { return standardSelectionModel()->currentIndex(); } void setCurrentIndex(const QModelIndex &newCurrent); + void switchToBuffer(const BufferId &bufferId); private slots: void debug_currentChanged(QModelIndex current, QModelIndex previous);