To aid debugging.
Change-Id: I841a59a60a0de504eef140debc5e55ee5f15d7f7
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-on: http://codereview.qt.nokia.com/2167
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
QChildEvent e(QEvent::ChildPolished, const_cast<QWidget *>(this));
QCoreApplication::sendEvent(d->parent, &e);
}
+#ifdef Q_WS_QPA
+ 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 += QLatin1String("Class");
+ }
+ on += QLatin1String("Window");
+ d->extra->topextra->window->setObjectName(on);
+ }
+#endif
}
/*!