summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwidget.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-05-10 16:57:41 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-10 22:59:25 +0200
commit78b9de746c9328cb56339d36598a67977360be2b (patch)
tree2a938a717c64c9c9458d7081a220d0dc476a5c0d /src/widgets/kernel/qwidget.cpp
parentfe59f15a5be51772eda2287fa20321f192ff18af (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.cpp10
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);
- }
}
/*!