Commit 36e1a6a8 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: enable Qt Quick Designer just for qml files

No .js files in the visual designer.

Task-number: QTCREATORBUG-4166
Reviewed-by: Kai Koehne
parent 866e39a0
......@@ -343,8 +343,7 @@ void BauhausPlugin::extensionsInitialized()
{
m_designMode = ExtensionSystem::PluginManager::instance()->getObject<Core::DesignMode>();
m_mimeTypes << "application/x-qml" << "application/javascript"
<< "application/x-javascript" << "text/javascript";
m_mimeTypes << "application/x-qml";
m_designMode->registerDesignWidget(m_mainWidget, m_mimeTypes, m_context->context());
connect(m_designMode, SIGNAL(actionsUpdated(Core::IEditor*)), SLOT(updateActions(Core::IEditor*)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment