X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fbuffermodel.h;h=4794afeb8f9c41bd22c0776c3b1ffee378eb876d;hb=130fde74cee428ec2e3285db89c4348c3091b2aa;hp=3126f737b909e68f378c54115fcbae368b882bbd;hpb=600a5683c1a8e679b7b63a00d5b1211b5b9771c7;p=quassel.git diff --git a/src/client/buffermodel.h b/src/client/buffermodel.h index 3126f737..4794afeb 100644 --- a/src/client/buffermodel.h +++ b/src/client/buffermodel.h @@ -45,12 +45,11 @@ public: void synchronizeSelectionModel(MappedSelectionModel *selectionModel); void synchronizeView(QAbstractItemView *view); - QModelIndex currentIndex(); + inline QModelIndex currentIndex() { return standardSelectionModel()->currentIndex(); } void setCurrentIndex(const QModelIndex &newCurrent); private slots: void debug_currentChanged(QModelIndex current, QModelIndex previous); - void debug_selectionChanged(QItemSelection current , QItemSelection previous); private: SelectionModelSynchronizer _selectionModelSynchronizer;