diff options
-rw-r--r-- | share/qtcreator/static.pro | 3 | ||||
-rw-r--r-- | src/share/qtcreator/externaltools/qmlscene.xml | 43 | ||||
-rw-r--r-- | src/share/qtcreator/externaltools/qmlviewer.xml | 2 | ||||
-rw-r--r-- | src/share/share.qbs | 1 |
4 files changed, 47 insertions, 2 deletions
diff --git a/share/qtcreator/static.pro b/share/qtcreator/static.pro index b707606bb1..891708b00f 100644 --- a/share/qtcreator/static.pro +++ b/share/qtcreator/static.pro @@ -95,7 +95,8 @@ DATA_FILES_SRC = \ externaltools/lrelease.xml \ externaltools/lupdate.xml \ externaltools/sort.xml \ - externaltools/qmlviewer.xml + externaltools/qmlviewer.xml \ + externaltools/qmlscene.xml unix { macx:DATA_FILES_SRC += externaltools/vi_mac.xml else:DATA_FILES_SRC += externaltools/vi.xml diff --git a/src/share/qtcreator/externaltools/qmlscene.xml b/src/share/qtcreator/externaltools/qmlscene.xml new file mode 100644 index 0000000000..a1b52f6215 --- /dev/null +++ b/src/share/qtcreator/externaltools/qmlscene.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +/**************************************************************************** +** +** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +****************************************************************************/ +--> +<externaltool id="qmlscene"> + <description>Runs the current QML file with qmlscene. This requires Qt 5.</description> + <displayname>Qt Quick 2 Preview (qmlscene)</displayname> + <category>Qt Quick</category> + <order>1</order> + <executable> + <path>%{CurrentProject:QT_INSTALL_BINS}/qmlscene</path> + <path>qmlscene</path> + <arguments>%{CurrentDocument:FilePath}</arguments> + <workingdirectory>%{CurrentDocument:Path}</workingdirectory> + </executable> +</externaltool> diff --git a/src/share/qtcreator/externaltools/qmlviewer.xml b/src/share/qtcreator/externaltools/qmlviewer.xml index d0baf547fc..e174bedc0d 100644 --- a/src/share/qtcreator/externaltools/qmlviewer.xml +++ b/src/share/qtcreator/externaltools/qmlviewer.xml @@ -31,7 +31,7 @@ --> <externaltool id="qmlviewer"> <description>Runs the current QML file with qmlviewer</description> - <displayname>Preview (qmlviewer)</displayname> + <displayname>Qt Quick 1 Preview (qmlviewer)</displayname> <category>Qt Quick</category> <order>1</order> <executable> diff --git a/src/share/share.qbs b/src/share/share.qbs index 3f2d437be1..b4f4f030e3 100644 --- a/src/share/share.qbs +++ b/src/share/share.qbs @@ -12,6 +12,7 @@ Product { "lrelease.xml", "lupdate.xml", "qmlviewer.xml", + "qmlscene.xml", "sort.xml", ] } |