forked from qt-creator/qt-creator
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:
@@ -349,10 +349,8 @@ void DesignDocumentController::loadCurrentModel()
|
|||||||
connect(m_d->componentAction.data(), SIGNAL(currentComponentChanged(ModelNode)), SLOT(changeCurrentModelTo(ModelNode)));
|
connect(m_d->componentAction.data(), SIGNAL(currentComponentChanged(ModelNode)), SLOT(changeCurrentModelTo(ModelNode)));
|
||||||
m_d->formEditorView->widget()->lowerToolBox()->addAction(m_d->componentAction.data());
|
m_d->formEditorView->widget()->lowerToolBox()->addAction(m_d->componentAction.data());
|
||||||
}
|
}
|
||||||
foreach (QAction *action , m_d->formEditorView->widget()->lowerToolBox()->actions())
|
// Disable switching between in file components for the time being
|
||||||
if (qobject_cast<ComponentAction*>(action))
|
m_d->componentAction->setVisible(false);
|
||||||
action->setVisible(false);
|
|
||||||
m_d->componentAction->setVisible(true);
|
|
||||||
|
|
||||||
connect(m_d->itemLibrary.data(), SIGNAL(itemActivated(const QString&)), m_d->formEditorView.data(), SLOT(activateItemCreator(const QString&)));
|
connect(m_d->itemLibrary.data(), SIGNAL(itemActivated(const QString&)), m_d->formEditorView.data(), SLOT(activateItemCreator(const QString&)));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user