forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user