Disable switching to Component elements

Feature is pretty fragile, and the primary use case (Delegates
for Views) isn't really supported anyway.

Task-number: BAUHAUS-562
This commit is contained in:
Kai Koehne
2010-04-08 09:27:30 +02:00
parent 58c012536d
commit 71aafa6555

View File

@@ -349,10 +349,8 @@ void DesignDocumentController::loadCurrentModel()
connect(m_d->componentAction.data(), SIGNAL(currentComponentChanged(ModelNode)), SLOT(changeCurrentModelTo(ModelNode)));
m_d->formEditorView->widget()->lowerToolBox()->addAction(m_d->componentAction.data());
}
foreach (QAction *action , m_d->formEditorView->widget()->lowerToolBox()->actions())
if (qobject_cast<ComponentAction*>(action))
action->setVisible(false);
m_d->componentAction->setVisible(true);
// Disable switching between in file components for the time being
m_d->componentAction->setVisible(false);
connect(m_d->itemLibrary.data(), SIGNAL(itemActivated(const QString&)), m_d->formEditorView.data(), SLOT(activateItemCreator(const QString&)));