summaryrefslogtreecommitdiffstats
path: root/mappingtreemodel.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-10-13 06:37:16 +0200
committerArno <am@disconnect.de>2013-10-13 06:37:16 +0200
commit5beb56a09363197e23a630d3fd2f71899d7f00a0 (patch)
treed3eab9eaa30050f587c907fca78cae07972ea4d4 /mappingtreemodel.h
parentc67e0b300850cf8f01ab58a45071ae7f649aaad1 (diff)
downloadSheMov-5beb56a09363197e23a630d3fd2f71899d7f00a0.tar.gz
SheMov-5beb56a09363197e23a630d3fd2f71899d7f00a0.tar.bz2
SheMov-5beb56a09363197e23a630d3fd2f71899d7f00a0.zip
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.
Diffstat (limited to 'mappingtreemodel.h')
-rw-r--r--mappingtreemodel.h1
1 files changed, 1 insertions, 0 deletions
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;