forked from qt-creator/qt-creator
Json: Use the javascript editor for json files.
Task-number: QTCREATORBUG-4639 Change-Id: Icd0fda434d5ca66056d784dd87240db76e8a442c Reviewed-on: http://codereview.qt-project.org/6035 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
@@ -30,9 +30,10 @@
|
||||
**
|
||||
**************************************************************************/
|
||||
|
||||
#include "qmljseditorconstants.h"
|
||||
#include "jsfilewizard.h"
|
||||
|
||||
#include <qmljstools/qmljstoolsconstants.h>
|
||||
|
||||
#include <utils/filewizarddialog.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/filewizarddialog.h>
|
||||
@@ -104,7 +105,7 @@ Core::GeneratedFiles JsFileWizard::generateFiles(const QWizard *w,
|
||||
const QString path = wizardDialog->path();
|
||||
const QString name = wizardDialog->fileName();
|
||||
|
||||
const QString mimeType = QLatin1String(Constants::JS_MIMETYPE);
|
||||
const QString mimeType = QLatin1String(QmlJSTools::Constants::JS_MIMETYPE);
|
||||
const QString fileName = Core::BaseFileWizard::buildFileName(path, name, preferredSuffix(mimeType));
|
||||
|
||||
Core::GeneratedFile file(fileName);
|
||||
|
||||
Reference in New Issue
Block a user