Commit 691aa41e authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: adding Meego plugin

parent b6c44d75
<metainfo>
<node name="Label" icon=":/mxplugin/images/item-icon16.png">
<itemlibraryentry name="Label (MeeGo)" category="Components MeeGo" libraryIcon=":/meegoplugin/images/item-icon.png">
</itemlibraryentry>
</node>
<node name="Button" icon=":/meegoplugin/images/item-icon16.png">
<itemlibraryentry name="Button (MeeGo)" category="Components MeeGo" libraryIcon=":/meegoplugin/images/item-icon.png">
</itemlibraryentry>
</node>
<node name="Slider" icon=":/meegoplugin/images/item-icon16.png">
<itemlibraryentry name="Slider (MeeGo)" category="Components MeeGo" libraryIcon=":/meegoplugin/images/item-icon.png">
</itemlibraryentry>
</node>
<node name="CheckBox" icon=":/meegoplugin/images/item-icon16.png">
<itemlibraryentry name="CheckBox (MeeGo)" category="Components MeeGo" libraryIcon=":/meegoplugin/images/item-icon.png">
</itemlibraryentry>
</node>
<node name="Spinner" icon=":/meegoplugin/images/item-icon16.png">
<itemlibraryentry name="Spinner (MeeGo)" category="Components MeeGo" libraryIcon=":/meegoplugin/images/item-icon.png">
</itemlibraryentry>
</node>
<node name="LineEdit" icon=":/meegoplugin/images/item-icon16.png">
<itemlibraryentry name="LineEdit (MeeGo)" category="Components MeeGo" libraryIcon=":/meegoplugin/images/item-icon.png">
</itemlibraryentry>
</node>
</metainfo>
/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@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
**
** 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.
**
** If you are unsure which license is appropriate for your use, please
** contact the sales department at http://qt.nokia.com/contact.
**
**************************************************************************/
#include "meegoplugin.h"
#include <widgetplugin_helper.h>
#include <QtCore/QtPlugin>
namespace QmlDesigner {
MeegoPlugin::MeegoPlugin()
{
}
QString MeegoPlugin::pluginName()
{
return ("MeegoPlugin");
}
QString MeegoPlugin::metaInfo()
{
return QString(":/meegoplugin/meego.metainfo");
}
}
Q_EXPORT_PLUGIN(QmlDesigner::MeegoPlugin)
/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@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
**
** 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.
**
** If you are unsure which license is appropriate for your use, please
** contact the sales department at http://qt.nokia.com/contact.
**
**************************************************************************/
#ifndef MEEGOPLUGIN_H
#define MEEGOPLUGIN_H
#include <iwidgetplugin.h>
#include <QtDeclarative/qdeclarative.h>
QT_BEGIN_NAMESPACE
QT_END_NAMESPACE
namespace QmlDesigner {
class MeegoPlugin : public QObject, QmlDesigner::IWidgetPlugin
{
Q_OBJECT
Q_DISABLE_COPY(MeegoPlugin)
Q_INTERFACES(QmlDesigner::IWidgetPlugin)
public:
MeegoPlugin();
~MeegoPlugin() {}
QString metaInfo();
QString pluginName();
};
} // namespace QmlDesigner
#endif // MEEGOPLUGIN_H
TARGET = meegoplugin
TEMPLATE = lib
CONFIG += plugin
QT += script \
declarative
include (../designercore/iwidgetplugin.pri)
DEFINES += SYMBIAN_LIBRARY
SOURCES += $$PWD/meegoplugin.cpp
HEADERS += $$PWD/meegoplugin.h $$PWD/../designercore/include/iwidgetplugin.h
RESOURCES += $$PWD/meegoplugin.qrc
OTHER_FILES += $$PWD/meego.metainfo
include(../../../../qtcreator.pri)
include(../../../private_headers.pri)
include(meegoplugin.pri)
include(plugindestdir.pri)
<RCC>
<qresource prefix="/meegoplugin">
<file>meego.metainfo</file>
<file>images/item-icon16.png</file>
<file>images/item-icon.png</file>
</qresource>
</RCC>
macx {
DESTDIR = $$IDE_LIBRARY_PATH/QmlDesigner
} else {
DESTDIR = $$IDE_BUILD_TREE/lib/qmldesigner
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment