X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.h;h=37f8916c1cfd876a2104af5638cf152f740a0796;hp=7bd3fc9ead4c18f969535d2982bf81cc8ad9afa2;hb=1eb21546673535f5707aa6346e8c749b928cd772;hpb=789f681013cdb7749c8b3347937de813bb51d3d0 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);