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:
Kai Koehne
2010-05-12 11:56:23 +02:00
parent 15f2c63459
commit a68fffd067
13 changed files with 91 additions and 105 deletions

View File

@@ -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) {