diff options
| author | Sandro S. Andrade <sandroandrade@kde.org> | 2013-11-27 10:44:11 -0300 |
|---|---|---|
| committer | Sandro S. Andrade <sandroandrade@kde.org> | 2013-11-27 14:48:36 +0100 |
| commit | 480140149c6ebd4a90da2227e022f51aeec935a1 (patch) | |
| tree | 7da48de4bc66b05af5816809c230d6e2d5d1bec3 /src/modeling/qmodelingobject.cpp | |
| parent | a0986a9f3f90633d620034d2f722467980f9383e (diff) | |
Add some improvements in property editor
Change-Id: Ib049d9c4b3def3face6cebf32d07972aa6bbae28
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>
Diffstat (limited to 'src/modeling/qmodelingobject.cpp')
| -rw-r--r-- | src/modeling/qmodelingobject.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modeling/qmodelingobject.cpp b/src/modeling/qmodelingobject.cpp index 15f4f1d6..a4786c14 100644 --- a/src/modeling/qmodelingobject.cpp +++ b/src/modeling/qmodelingobject.cpp @@ -163,6 +163,13 @@ bool QModelingObject::isKindOf(QString type) const return d->propertyGroups.contains(type); } +void QModelingObject::setObjectName(const QString &name) +{ + QObject::setObjectName(name); + if (metaObject()->indexOfProperty("name") != -1) + setProperty("name", name); +} + /*! Creates a new QModelingObject with the given \a parent. This is a protected constructor since this class is not intended to be directly instantiated. |
