forked from qt-creator/qt-creator
QuickDesigner: Update ItemLibrary when imported directories change
ItemLibraryInfo has now a signal "entriesChanged()", which the ItemLibrary connects to. To allow this, ItemLibraryInfo was moved from a stack-based to a heap-based class. Reviewed-by: Thomas Hartmann
This commit is contained in:
@@ -344,7 +344,7 @@ void DesignDocumentController::loadCurrentModel()
|
||||
m_d->model->setMasterModel(m_d->masterModel.data());
|
||||
|
||||
m_d->model->attachView(m_d->navigator.data());
|
||||
m_d->itemLibrary->setMetaInfo(m_d->model->metaInfo());
|
||||
m_d->itemLibrary->setItemLibraryInfo(m_d->model->metaInfo().itemLibraryInfo());
|
||||
m_d->itemLibrary->setResourcePath(QFileInfo(m_d->fileName).absolutePath());
|
||||
|
||||
if (!m_d->componentAction) {
|
||||
|
||||
Reference in New Issue
Block a user