summaryrefslogtreecommitdiff
path: root/src/share
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-07-29 14:58:26 +0200
committerKai Koehne <kai.koehne@nokia.com>2011-07-29 16:29:58 +0200
commit52d2987e50b9ab7c5478676053567a813ce73458 (patch)
tree812001ecb70735d03db4954d1a6cbafcff47532d /src/share
parentf9d72df0d0b5fed01914e2ba3e9127a51e73b8fc (diff)
downloadqt-creator-52d2987e50b9ab7c5478676053567a813ce73458.tar.gz
Provide qmlviewer in external tools menu
Quite a few people have asked for previewing a .qml file in qmlviewer, independent of the current project format. Change-Id: I2d012282b035cbf977de1994b6c2ace31f3cdfd5 Reviewed-on: http://codereview.qt.nokia.com/2397 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/share')
-rw-r--r--src/share/qtcreator/externaltools/qmlviewer.xml43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/share/qtcreator/externaltools/qmlviewer.xml b/src/share/qtcreator/externaltools/qmlviewer.xml
new file mode 100644
index 0000000000..4638964ce7
--- /dev/null
+++ b/src/share/qtcreator/externaltools/qmlviewer.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation (info@qt.nokia.com)
+**
+** Commercial Usage
+**
+** Licensees holding valid Qt Commercial licenses may use this file in
+** accordance with the Qt Commercial License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Nokia.
+**
+** GNU Lesser General Public License Usage
+**
+** 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.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at http://qt.nokia.com/contact.
+**
+**************************************************************************/
+-->
+<externaltool id="qmlviewer">
+ <description>Runs the current QML file with qmlviewer</description>
+ <displayname>Preview (qmlviewer)</displayname>
+ <category>Qt Quick</category>
+ <order>1</order>
+ <executable>
+ <path>%{CurrentProject:QT_INSTALL_BINS}/qmlviewer</path>
+ <path>qmlviewer</path>
+ <arguments>%{CurrentDocument:FilePath}</arguments>
+ <workingdirectory>%{CurrentDocument:Path}</workingdirectory>
+ </executable>
+</externaltool>