From 8879c6c6a018a77653c6ec6e32eb3521c097d2c4 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Tue, 21 Jun 2011 21:30:38 +0200 Subject: QmlDesigner.Plugin: Add experimental custom style plugin Change-Id: Ia98b8f61988a1a817fda022d4298f1ad4e6942e2 Reviewed-on: http://codereview.qt.nokia.com/577 Reviewed-by: Qt Sanity Bot Reviewed-by: Thomas Hartmann --- .../customstyleplugin/customstyleplugin.cpp | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/plugins/qmldesigner/customstyleplugin/customstyleplugin.cpp (limited to 'src/plugins/qmldesigner/customstyleplugin/customstyleplugin.cpp') diff --git a/src/plugins/qmldesigner/customstyleplugin/customstyleplugin.cpp b/src/plugins/qmldesigner/customstyleplugin/customstyleplugin.cpp new file mode 100644 index 0000000000..1663226103 --- /dev/null +++ b/src/plugins/qmldesigner/customstyleplugin/customstyleplugin.cpp @@ -0,0 +1,57 @@ +/************************************************************************** +** +** This file is part of Qt Creator +** +** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (info@qt.nokia.com) +** +** +** 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. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** Other Usage +** +** Alternatively, this file may be used in accordance with the terms and +** conditions contained in a signed written agreement between you and Nokia. +** +** If you have questions regarding the use of this file, please contact +** Nokia at info@qt.nokia.com. +** +**************************************************************************/ + +#include "customstyleplugin.h" +#include +#include + +namespace QmlDesigner { + + +CustomStylePlugin::CustomStylePlugin() +{ +} + +QString CustomStylePlugin::pluginName() const +{ + return ("CustomStylePlugin"); +} + +QString CustomStylePlugin::metaInfo() const +{ + return QString(":/customstyleplugin/customstyle.metainfo"); +} + +} + +Q_EXPORT_PLUGIN(QmlDesigner::CustomStylePlugin) + -- cgit v1.2.1