Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
b6c44d75
Commit
b6c44d75
authored
Dec 09, 2010
by
Thomas Hartmann
Browse files
QmlDesigner: adding Symbian plugin
parent
1cbf0f26
Changes
9
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/symbianplugin/images/item-icon.png
0 → 100644
View file @
b6c44d75
396 Bytes
src/plugins/qmldesigner/symbianplugin/images/item-icon16.png
0 → 100644
View file @
b6c44d75
312 Bytes
src/plugins/qmldesigner/symbianplugin/plugindestdir.pri
0 → 100644
View file @
b6c44d75
macx {
DESTDIR = $$IDE_LIBRARY_PATH/QmlDesigner
} else {
DESTDIR = $$IDE_BUILD_TREE/lib/qmldesigner
}
src/plugins/qmldesigner/symbianplugin/symbian.metainfo
0 → 100644
View file @
b6c44d75
<metainfo>
<node name="Label" icon=":/mxplugin/images/item-icon16.png">
<itemlibraryentry name="Label (Symbian)" category="Components Symbian" libraryIcon=":/symbianplugin/images/item-icon.png" version="1.0" requiredImport="Qt.labs.Symbian">
<property name="width" type="int" value="100"/>
<property name="height" type="int" value="30"/>
<property name="text" type="QString" value="Label"/>
</itemlibraryentry>
</node>
<node name="Button" icon=":/symbianplugin/images/item-icon16.png">
<itemlibraryentry name="Button (Symbian)" category="Components Symbian" libraryIcon=":/symbianplugin/images/item-icon.png" version="1.0" requiredImport="Qt.labs.Symbian">
<property name="width" type="int" value="100"/>
<property name="height" type="int" value="30"/>
<property name="text" type="QString" value="Button"/>
</itemlibraryentry>
</node>
<node name="Slider" icon=":/symbianplugin/images/item-icon16.png">
</node>
<node name="CheckBox" icon=":/symbianplugin/images/item-icon16.png">
<itemlibraryentry name="CheckBox (Symbian)" category="Components Symbian" libraryIcon=":/symbianplugin/images/item-icon.png" version="1.0" requiredImport="Qt.labs.Symbian">
<property name="width" type="int" value="180"/>
<property name="height" type="int" value="30"/>
<property name="text" type="QString" value="CheckBox"/>
</itemlibraryentry>
</node>
<node name="RadioButton" icon=":/symbianplugin/images/item-icon16.png">
<itemlibraryentry name="RadioButton (Symbian)" category="Components Symbian" libraryIcon=":/symbianplugin/images/item-icon.png" version="1.0" requiredImport="Qt.labs.Symbian">
<property name="width" type="int" value="180"/>
<property name="height" type="int" value="30"/>
<property name="text" type="QString" value="RadioButton"/>
</itemlibraryentry>
</node>
<node name="Spinner" icon=":/symbianplugin/images/item-icon16.png">
</node>
<node name="Switch" icon=":/symbianplugin/images/item-icon16.png">
</node>
<node name="LineEdit" icon=":/symbianplugin/images/item-icon16.png">
<itemlibraryentry name="LineEdit (Symbian)" category="Components Symbian" libraryIcon=":/symbianplugin/images/item-icon.png" version="1.0" requiredImport="Qt.labs.Symbian">
<property name="width" type="int" value="100"/>
<property name="height" type="int" value="30"/>
<property name="text" type="QString" value="LineEdit"/>
</itemlibraryentry>
</node>
<node name="ProgressBar" icon=":/symbianplugin/images/item-icon16.png">
<itemlibraryentry name="ProgressBar (Symbian)" category="Components Symbian" libraryIcon=":/symbianplugin/images/item-icon.png" version="1.0" requiredImport="Qt.labs.Symbian">
<property name="width" type="int" value="100"/>
<property name="height" type="int" value="30"/>
</itemlibraryentry>
</node>
</metainfo>
src/plugins/qmldesigner/symbianplugin/symbianplugin.cpp
0 → 100644
View file @
b6c44d75
/**************************************************************************
**
** 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
"symbianplugin.h"
#include
<widgetplugin_helper.h>
#include
<QtCore/QtPlugin>
namespace
QmlDesigner
{
SymbianPlugin
::
SymbianPlugin
()
{
}
QString
SymbianPlugin
::
pluginName
()
{
return
(
"SymbianPlugin"
);
}
QString
SymbianPlugin
::
metaInfo
()
{
return
QString
(
":/symbianplugin/symbian.metainfo"
);
}
}
Q_EXPORT_PLUGIN
(
QmlDesigner
::
SymbianPlugin
)
src/plugins/qmldesigner/symbianplugin/symbianplugin.h
0 → 100644
View file @
b6c44d75
/**************************************************************************
**
** 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 SymbianPLUGIN_H
#define SymbianPLUGIN_H
#include
<iwidgetplugin.h>
#include
<QtDeclarative/qdeclarative.h>
QT_BEGIN_NAMESPACE
QT_END_NAMESPACE
namespace
QmlDesigner
{
class
SymbianPlugin
:
public
QObject
,
QmlDesigner
::
IWidgetPlugin
{
Q_OBJECT
Q_DISABLE_COPY
(
SymbianPlugin
)
Q_INTERFACES
(
QmlDesigner
::
IWidgetPlugin
)
public:
SymbianPlugin
();
~
SymbianPlugin
()
{}
QString
metaInfo
();
QString
pluginName
();
};
}
// namespace QmlDesigner
#endif // SymbianPLUGIN_H
src/plugins/qmldesigner/symbianplugin/symbianplugin.pri
0 → 100644
View file @
b6c44d75
TARGET = symbianplugin
TEMPLATE = lib
CONFIG += plugin
QT += script \
declarative
include (../designercore/iwidgetplugin.pri)
DEFINES += SYMBIAN_LIBRARY
SOURCES += $$PWD/symbianplugin.cpp
HEADERS += $$PWD/symbianplugin.h $$PWD/../designercore/include/iwidgetplugin.h
RESOURCES += $$PWD/symbianplugin.qrc
OTHER_FILES += $$PWD/symbian.metainfo
src/plugins/qmldesigner/symbianplugin/symbianplugin.pro
0 → 100644
View file @
b6c44d75
include
(..
/../../../
qtcreator
.
pri
)
include
(..
/../../
private_headers
.
pri
)
include
(
symbianplugin
.
pri
)
include
(
plugindestdir
.
pri
)
src/plugins/qmldesigner/symbianplugin/symbianplugin.qrc
0 → 100644
View file @
b6c44d75
<RCC>
<qresource prefix="/symbianplugin">
<file>symbian.metainfo</file>
<file>images/item-icon16.png</file>
<file>images/item-icon.png</file>
</qresource>
</RCC>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment