forked from qt-creator/qt-creator
Utils/all: Move mime constants into a central place
They are reasonably standardized, and generally usable cross-plugin, so this can help to avoid a few cross-plugin compiletime dependencies. Change-Id: Icb2b010c3e12dee69df54ab16f6f8e90d9cffba6 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -3,10 +3,14 @@
|
||||
|
||||
#include "bindingeditorwidget.h"
|
||||
|
||||
#include <plaintexteditmodifier.h>
|
||||
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
#include <coreplugin/coreplugintr.h>
|
||||
#include <coreplugin/icore.h>
|
||||
#include <plaintexteditmodifier.h>
|
||||
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
|
||||
#include <qmljseditor/qmljsautocompleter.h>
|
||||
#include <qmljseditor/qmljscompletionassist.h>
|
||||
#include <qmljseditor/qmljseditor.h>
|
||||
@@ -14,11 +18,11 @@
|
||||
#include <qmljseditor/qmljshighlighter.h>
|
||||
#include <qmljseditor/qmljshoverhandler.h>
|
||||
#include <qmljseditor/qmljssemantichighlighter.h>
|
||||
#include <qmljstools/qmljsindenter.h>
|
||||
#include <qmljstools/qmljstoolsconstants.h>
|
||||
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <qmljstools/qmljsindenter.h>
|
||||
|
||||
#include <utils/fancylineedit.h>
|
||||
#include <utils/mimeconstants.h>
|
||||
#include <utils/transientscroll.h>
|
||||
|
||||
#include <QAction>
|
||||
@@ -145,9 +149,9 @@ BindingEditorFactory::BindingEditorFactory()
|
||||
setDisplayName(::Core::Tr::tr("Binding Editor"));
|
||||
setEditorActionHandlers(0);
|
||||
addMimeType(BINDINGEDITOR_CONTEXT_ID);
|
||||
addMimeType(QmlJSTools::Constants::QML_MIMETYPE);
|
||||
addMimeType(QmlJSTools::Constants::QMLTYPES_MIMETYPE);
|
||||
addMimeType(QmlJSTools::Constants::JS_MIMETYPE);
|
||||
addMimeType(Utils::Constants::QML_MIMETYPE);
|
||||
addMimeType(Utils::Constants::QMLTYPES_MIMETYPE);
|
||||
addMimeType(Utils::Constants::JS_MIMETYPE);
|
||||
|
||||
setDocumentCreator([]() { return new BindingDocument; });
|
||||
setEditorWidgetCreator([]() { return new BindingEditorWidget; });
|
||||
|
||||
Reference in New Issue
Block a user