From 6f8f149761938ae7b132351024d180a3da1d02ef Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Fri, 7 Jun 2019 13:33:45 +0200 Subject: [PATCH] QmlDesigner: Reload property page on start This is requires to work around QTBUG-75847. Change-Id: Ib95fed12cc332e4d231d5bfee3c20dff5f2f19c3 Reviewed-by: Tim Jenssen --- .../components/propertyeditor/propertyeditorview.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp index fd8c7f0fafb..9dd0a2da24b 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp @@ -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;