X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.h;h=37f8916c1cfd876a2104af5638cf152f740a0796;hp=7bd3fc9ead4c18f969535d2982bf81cc8ad9afa2;hb=ed2415135359b4f8a3f75f2634e028500c08c1fe;hpb=6cd120c0b28d9cca7e2465fad731977d532ce74d diff --git a/src/client/buffermodel.h b/src/client/buffermodel.h index 7bd3fc9e..37f8916c 100644 --- a/src/client/buffermodel.h +++ b/src/client/buffermodel.h @@ -45,8 +45,12 @@ 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);