X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.h;h=37f8916c1cfd876a2104af5638cf152f740a0796;hp=4794afeb8f9c41bd22c0776c3b1ffee378eb876d;hb=722557f44cb857b9467b84c87f742dce8e98a500;hpb=533eaaeda64759c01daa624365b8fc63eeba5ccf diff --git a/src/client/buffermodel.h b/src/client/buffermodel.h index 4794afeb..37f8916c 100644 --- a/src/client/buffermodel.h +++ b/src/client/buffermodel.h @@ -46,7 +46,11 @@ public: void synchronizeView(QAbstractItemView *view); 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);