+void NickView::setRootIndex(const QModelIndex& index)
+{
+ QAbstractItemView::setRootIndex(index);
+ if (index.isValid())
+ unanimatedExpandAll();
+}
+
+QModelIndexList NickView::selectedIndexes() const
+{
+ QModelIndexList indexList = TreeViewTouch::selectedIndexes();
+
+ // make sure the item we clicked on is first
+ if (indexList.contains(currentIndex())) {
+ indexList.removeAll(currentIndex());
+ indexList.prepend(currentIndex());
+ }
+
+ return indexList;