X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.h;h=37f8916c1cfd876a2104af5638cf152f740a0796;hp=7c00ea4f7174341efce78a54baf165b8feac22ec;hb=c5c74323b6d8f3fc6775ca1d08cb84c602bac58d;hpb=2a7318219cc91be4bc50d2cef605d216834d1687 diff --git a/src/client/buffermodel.h b/src/client/buffermodel.h index 7c00ea4f..37f8916c 100644 --- a/src/client/buffermodel.h +++ b/src/client/buffermodel.h @@ -45,10 +45,12 @@ public: void synchronizeSelectionModel(MappedSelectionModel *selectionModel); void synchronizeView(QAbstractItemView *view); -public slots: 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);