Skip to content
Snippets Groups Projects
Commit a2c1ae8a authored by Thomas Hartmann's avatar Thomas Hartmann Committed by hjk
Browse files

QmlDesigner.itemLibrary: adding plugin for extra components

A new extra component plugin.
(cherry picked from commit fbcbac5a)
(cherry picked from commit 0e3f13e921f3812f8944a22375131b4e2fd87f87)

Change-Id: Ifbcbac5a65b26da281404f63885dff884afaba78q
Reviewed-on: http://codereview.qt.nokia.com/467


Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 1f05dec2
No related branches found
No related tags found
No related merge requests found
Showing
with 226 additions and 0 deletions
<metainfo>
<node name="CountBubble" icon=":/extrasplugin/images/count-bubble-16.png">
<itemlibraryentry name="CountBubble" category="Components Extras" libraryIcon=":/extrasplugin/images/count-bubble-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
<node name="DatePickerDialog" icon=":/extrasplugin/images/date-picker-16.png">
<itemlibraryentry name="DatePickerDialog" category="Components Extras" libraryIcon=":/extrasplugin/images/date-picker-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
<node name="InfoBanner" icon=":/extrasplugin/images/info-banner-16.png">
<itemlibraryentry name="InfoBanner" category="Components Extras" libraryIcon=":/extrasplugin/images/info-banner-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
<node name="ListButton" icon=":/extrasplugin/images/list-button-16.png">
<itemlibraryentry name="ListButton" category="Components Extras" libraryIcon=":/extrasplugin/images/list-button-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
<node name="ListDelegate" icon=":/extrasplugin/images/list-delegate-16.png">
<itemlibraryentry name="ListDelegate" category="Components Extras" libraryIcon=":/extrasplugin/images/list-delegate-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
<node name="MoreIndicator" icon=":/extrasplugin/images/more-indicator-16.png">
<itemlibraryentry name="MoreIndicator" category="Components Extras" libraryIcon=":/extrasplugin/images/more-indicator-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
<node name="PageIndicator" icon=":/extrasplugin/images/page-indicator-16.png">
<itemlibraryentry name="PageIndicator" category="Components Extras" libraryIcon=":/extrasplugin/images/page-indicator-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
<node name="RatingIndicator" icon=":/extrasplugin/images/rating-indicator-16.png">
<itemlibraryentry name="RatingIndicator" category="Components Extras" libraryIcon=":/extrasplugin/images/rating-indicator-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
<node name="TimePickerDialog" icon=":/extrasplugin/images/time-picker-16.png">
<itemlibraryentry name="TimePickerDialog" category="Components Extras" libraryIcon=":/extrasplugin/images/time-picker-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
<node name="Tumbler" icon=":/extrasplugin/images/tumbler-16.png">
<itemlibraryentry name="Tumbler" category="Components Extras" libraryIcon=":/extrasplugin/images/tumbler-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
<node name="TumblerButton" icon=":/extrasplugin/images/tumbler-button-16.png">
<itemlibraryentry name="TumblerButton" category="Components Extras" libraryIcon=":/extrasplugin/images/tumbler-button-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
<node name="TumblerColumn" icon=":/extrasplugin/images/tumbler-column-16.png">
<itemlibraryentry name="TumblerColumn" category="Components Extras" libraryIcon=":/extrasplugin/images/tumbler-column-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
<node name="TumblerDialog" icon=":/extrasplugin/images/tumbler-dialog-16.png">
<itemlibraryentry name="TumblerDialog" category="Components Extras" libraryIcon=":/extrasplugin/images/tumbler-dialog-24.png" version="1.0" requiredImport="com.nokia.extras">
</itemlibraryentry>
</node>
</metainfo>
/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** No Commercial Usage
**
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** 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, 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.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**************************************************************************/
#include "extrasplugin.h"
#include <widgetplugin_helper.h>
#include <QtCore/QtPlugin>
namespace QmlDesigner {
ExtrasPlugin::ExtrasPlugin()
{
}
QString ExtrasPlugin::pluginName()
{
return ("ExtrasPlugin");
}
QString ExtrasPlugin::metaInfo()
{
return QString(":/extrasplugin/extras.metainfo");
}
}
Q_EXPORT_PLUGIN(QmlDesigner::ExtrasPlugin)
/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** No Commercial Usage
**
** This file contains pre-release code and may not be distributed.
** You may use this file in accordance with the terms and conditions
** contained in the Technology Preview License Agreement accompanying
** this package.
**
** 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, 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.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
**
**************************************************************************/
#ifndef EXTRASPLUGIN_H
#define EXTRASPLUGIN_H
#include <iwidgetplugin.h>
#include <QtDeclarative/qdeclarative.h>
QT_BEGIN_NAMESPACE
QT_END_NAMESPACE
namespace QmlDesigner {
class ExtrasPlugin : public QObject, QmlDesigner::IWidgetPlugin
{
Q_OBJECT
Q_DISABLE_COPY(ExtrasPlugin)
Q_INTERFACES(QmlDesigner::IWidgetPlugin)
public:
ExtrasPlugin();
~ExtrasPlugin() {}
QString metaInfo();
QString pluginName();
};
} // namespace QmlDesigner
#endif // EXTRASPLUGIN_H
TARGET = extrasplugin
TEMPLATE = lib
CONFIG += plugin
QT += script \
declarative
include (../designercore/iwidgetplugin.pri)
DEFINES += SYMBIAN_LIBRARY
SOURCES += $$PWD/extrasplugin.cpp
HEADERS += $$PWD/extrasplugin.h $$PWD/../designercore/include/iwidgetplugin.h
RESOURCES += $$PWD/extrasplugin.qrc
OTHER_FILES += $$PWD/extras.metainfo
include(../../../../qtcreator.pri)
include(../../../private_headers.pri)
include(extrasplugin.pri)
include(plugindestdir.pri)
<RCC>
<qresource prefix="/extrasplugin">
<file>extras.metainfo</file>
<file>images/count-bubble-16.png</file>
<file>images/count-bubble-24.png</file>
<file>images/date-picker-16.png</file>
<file>images/date-picker-24.png</file>
<file>images/info-banner-16.png</file>
<file>images/info-banner-24.png</file>
<file>images/list-button-16.png</file>
<file>images/list-button-24.png</file>
<file>images/list-delegate-16.png</file>
<file>images/list-delegate-24.png</file>
<file>images/more-indicator-16.png</file>
<file>images/more-indicator-24.png</file>
<file>images/page-indicator-16.png</file>
<file>images/page-indicator-24.png</file>
<file>images/rating-indicator-16.png</file>
<file>images/rating-indicator-24.png</file>
<file>images/time-picker-16.png</file>
<file>images/time-picker-24.png</file>
<file>images/tumbler-16.png</file>
<file>images/tumbler-24.png</file>
<file>images/tumbler-button-16.png</file>
<file>images/tumbler-button-24.png</file>
<file>images/tumbler-column-16.png</file>
<file>images/tumbler-column-24.png</file>
<file>images/tumbler-dialog-16.png</file>
<file>images/tumbler-dialog-24.png</file>
</qresource>
</RCC>
src/plugins/qmldesigner/extrasplugin/images/count-bubble-16.png

3.35 KiB

src/plugins/qmldesigner/extrasplugin/images/count-bubble-24.png

985 B

src/plugins/qmldesigner/extrasplugin/images/date-picker-16.png

3.43 KiB

src/plugins/qmldesigner/extrasplugin/images/date-picker-24.png

606 B

src/plugins/qmldesigner/extrasplugin/images/info-banner-16.png

3.03 KiB

src/plugins/qmldesigner/extrasplugin/images/info-banner-24.png

323 B

src/plugins/qmldesigner/extrasplugin/images/list-button-16.png

3.14 KiB

src/plugins/qmldesigner/extrasplugin/images/list-button-24.png

481 B

src/plugins/qmldesigner/extrasplugin/images/list-delegate-16.png

3.2 KiB

src/plugins/qmldesigner/extrasplugin/images/list-delegate-24.png

425 B

src/plugins/qmldesigner/extrasplugin/images/more-indicator-16.png

3.25 KiB

src/plugins/qmldesigner/extrasplugin/images/more-indicator-24.png

896 B

src/plugins/qmldesigner/extrasplugin/images/page-indicator-16.png

3.09 KiB

src/plugins/qmldesigner/extrasplugin/images/page-indicator-24.png

579 B

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment