From 5beb56a09363197e23a630d3fd2f71899d7f00a0 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 13 Oct 2013 06:37:16 +0200 Subject: Fix renaming mapping items for pics With some GNOME themes the edit trigger for SmTreeModel is borked. The current name is mixed with the new one, and one can't recognize anything. Use a QInputDialog instead. --- mappingtreemodel.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mappingtreemodel.h') diff --git a/mappingtreemodel.h b/mappingtreemodel.h index c28967a..ec30fb3 100644 --- a/mappingtreemodel.h +++ b/mappingtreemodel.h @@ -44,6 +44,7 @@ class MappingTreeModel : public SmTreeModel { bool addMappingType(const QString &type); bool deleteMappingType(int typeId); bool addChild(const QVariant &name, const QModelIndex &parent); + bool renameChild(const QModelIndex &idx, const QString newName); bool deleteChild(const QModelIndex &idx); MappingData mappingDataFromIndex(QModelIndex &idx) const; QStringList paths() const; -- cgit v1.2.3-70-g09d2