Fixed #4375, fix pasting multiple items in Companion. (#4381)

This commit is contained in:
Kelly Byrd
2017-02-03 10:26:31 +01:00
committed by Damjan Adamic
parent 2b83160284
commit a0aa883743
3 changed files with 19 additions and 13 deletions
+3
View File
@@ -98,6 +98,9 @@ class TreeModel : public QAbstractItemModel
return getItem(index)->getCategoryIndex();
}
int rowNumber(const QModelIndex & index = QModelIndex()) const {
return getItem(index)->childNumber();
}
private:
TreeItem * getItem(const QModelIndex & index) const;
TreeItem * rootItem;