Split the tool box of form editor in a upper and lower one

This commit is contained in:
Marco Bubke
2010-01-21 16:54:05 +01:00
parent 4e17c0e831
commit 47afcf99ca
3 changed files with 49 additions and 42 deletions

View File

@@ -421,7 +421,7 @@ void DesignDocumentController::loadCurrentModel()
m_d->stackedWidget->addWidget(m_d->formEditorView->widget());
ComponentAction *componentAction = new ComponentAction(m_d->formEditorView->widget());
componentAction->setModel(m_d->model.data());
m_d->formEditorView->widget()->toolBox()->addAction(componentAction);
m_d->formEditorView->widget()->lowerToolBox()->addAction(componentAction);
connect(componentAction, SIGNAL(currentComponentChanged(ModelNode)), SLOT(changeCurrentModelTo(ModelNode))); //TODO component action
connect(m_d->itemLibrary.data(), SIGNAL(itemActivated(const QString&)), m_d->formEditorView.data(), SLOT(activateItemCreator(const QString&)));
}