Show one-letter words again
[quassel.git] / src / uisupport / abstractitemview.h
index bffc35b..1ddcd44 100644 (file)
@@ -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 *) {};