QmlDesigner: Reload property page on start

This is requires to work around QTBUG-75847.

Change-Id: Ib95fed12cc332e4d231d5bfee3c20dff5f2f19c3
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2019-06-07 13:33:45 +02:00
parent 469647db3d
commit 6f8f149761

View File

@@ -553,10 +553,11 @@ void PropertyEditorView::modelAttached(Model *model)
m_locked = true;
if (!m_setupCompleted) {
m_singleShotTimer->setSingleShot(true);
m_singleShotTimer->setInterval(100);
connect(m_singleShotTimer, &QTimer::timeout, this, &PropertyEditorView::setupPanes);
m_singleShotTimer->start();
QTimer::singleShot(50, this, [this]{
PropertyEditorView::setupPanes();
/* workaround for QTBUG-75847 */
reloadQml();
});
}
m_locked = false;