X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fabstractitemview.h;h=1ddcd440c5ca5f9e51d1041547039ff865e305d5;hp=bffc35b09e1827f774cfe3adcae7f200a3b70811;hb=09515f0300f18490ee1788392a7518a6e1ab5acc;hpb=1b2d3ea62867220d7bffc3b23dda1dc14d429007 diff --git a/src/uisupport/abstractitemview.h b/src/uisupport/abstractitemview.h index bffc35b0..1ddcd440 100644 --- a/src/uisupport/abstractitemview.h +++ b/src/uisupport/abstractitemview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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 *) {};