diff options
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
| -rw-r--r-- | src/corelib/kernel/qobject.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp index 36505fae62f..42d2abbb982 100644 --- a/src/corelib/kernel/qobject.cpp +++ b/src/corelib/kernel/qobject.cpp @@ -1289,6 +1289,17 @@ QString QObject::objectName() const } /*! + \internal + Only use if you know nothing can be bound yet. Usually used for + internal objects that do get names. +*/ +void QObjectPrivate::setObjectNameWithoutBindings(const QString &name) +{ + ensureExtraData(); + extraData->objectName.setValueBypassingBindings(name); +} + +/*! \fn void QObject::setObjectName(const QString &name) Sets the object's name to \a name. */ |
