diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-05-10 16:57:41 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-10 22:59:25 +0200 |
commit | 78b9de746c9328cb56339d36598a67977360be2b (patch) | |
tree | 2a938a717c64c9c9458d7081a220d0dc476a5c0d /src/widgets/kernel/qwidget.cpp | |
parent | fe59f15a5be51772eda2287fa20321f192ff18af (diff) |
Keep object name of QWidgetWindow in sync with the widget.
Use new objectNameChanged() signal.
Change-Id: I247566bd51d23ec65ff74ba9ac7be0d18e8ff160
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/widgets/kernel/qwidget.cpp')
-rw-r--r-- | src/widgets/kernel/qwidget.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp index 74612559f0..1b5b9ccf34 100644 --- a/src/widgets/kernel/qwidget.cpp +++ b/src/widgets/kernel/qwidget.cpp @@ -9074,16 +9074,6 @@ void QWidget::ensurePolished() const QChildEvent e(QEvent::ChildPolished, const_cast<QWidget *>(this)); QCoreApplication::sendEvent(d->parent, &e); } - if (d->extra && d->extra->topextra && d->extra->topextra->window - && d->extra->topextra->window->objectName().isEmpty()) { - QString on = objectName(); - if (on.isEmpty()) { - on = QString::fromUtf8(metaObject()->className()); - on += QStringLiteral("Class"); - } - on += QStringLiteral("Window"); - d->extra->topextra->window->setObjectName(on); - } } /*! |