X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fabstractitemview.h;h=7efb478ac5b858fd82b612680c1676a8e28d4c64;hp=bffc35b09e1827f774cfe3adcae7f200a3b70811;hb=5992edbbfa5a6e4a3c72b07c6f08a464f87dd432;hpb=1b2d3ea62867220d7bffc3b23dda1dc14d429007 diff --git a/src/uisupport/abstractitemview.h b/src/uisupport/abstractitemview.h index bffc35b0..7efb478a 100644 --- a/src/uisupport/abstractitemview.h +++ b/src/uisupport/abstractitemview.h @@ -41,6 +41,8 @@ public: inline QItemSelectionModel *selectionModel() const { return _selectionModel; } void setSelectionModel(QItemSelectionModel *selectionModel); + inline QModelIndex currentIndex() const { return _selectionModel->currentIndex(); } + protected slots: virtual void closeEditor(QWidget *, QAbstractItemDelegate::EndEditHint) {}; virtual void commitData(QWidget *) {};