forked from qt-creator/qt-creator
Prevent symbol clashes for qml classes
Fix namespace usage such that all classes in shared/qml live in the Qml namespace, and classes in QmlDesigner plugin in the QmlDesigner namespace. This should prevent any symbol clashes until we can finally get rid of the file dublicates (e.g. QmlDocument).
This commit is contained in:
@@ -100,8 +100,8 @@ void QmlProjectPlugin::extensionsInitialized()
|
||||
|
||||
QmlEditor::QmlModelManagerInterface *modelManager = pluginManager->getObject<QmlEditor::QmlModelManagerInterface>();
|
||||
Q_ASSERT(modelManager);
|
||||
connect(modelManager, SIGNAL(documentUpdated(QmlEditor::QmlDocument::Ptr)),
|
||||
m_qmlTaskManager, SLOT(documentUpdated(QmlEditor::QmlDocument::Ptr)));
|
||||
connect(modelManager, SIGNAL(documentUpdated(Qml::QmlDocument::Ptr)),
|
||||
m_qmlTaskManager, SLOT(documentUpdated(Qml::QmlDocument::Ptr)));
|
||||
}
|
||||
|
||||
Q_EXPORT_PLUGIN(QmlProjectPlugin)
|
||||
|
||||
@@ -48,7 +48,7 @@ void QmlTaskManager::setTaskWindow(ProjectExplorer::TaskWindow *taskWindow)
|
||||
m_taskWindow->addCategory(Constants::TASK_CATEGORY_QML, "Qml");
|
||||
}
|
||||
|
||||
void QmlTaskManager::documentUpdated(QmlEditor::QmlDocument::Ptr doc)
|
||||
void QmlTaskManager::documentUpdated(Qml::QmlDocument::Ptr doc)
|
||||
{
|
||||
#if 0 // This will give way too many flickering errors in the build-results pane *when you're typing*
|
||||
m_taskWindow->clearTasks(Constants::TASK_CATEGORY_QML);
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
void setTaskWindow(ProjectExplorer::TaskWindow *taskWindow);
|
||||
|
||||
public slots:
|
||||
void documentUpdated(QmlEditor::QmlDocument::Ptr doc);
|
||||
void documentUpdated(Qml::QmlDocument::Ptr doc);
|
||||
|
||||
private:
|
||||
ProjectExplorer::TaskWindow *m_taskWindow;
|
||||
|
||||
Reference in New Issue
Block a user