Commit 238efaf3 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: updating symbian plugin

Nice support for ToolBar and a symbian style ListView

Change-Id: I14b2ce7dd33fa363d6e2c498d83dda362e03169a
Reviewed-on: http://codereview.qt.nokia.com/1756

Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent b3a64897
import QtQuick 1.0
import com.nokia.symbian 1.0
ListView {
x: 0
y: 36
width: 360
height: 320
clip: true
header: ListHeading {
ListItemText {
anchors.fill: parent.paddingItem
role: "Heading"
text: "ListHeading"
}
}
delegate: ListItem {
id: listItem
Column {
anchors.fill: parent.paddingItem
ListItemText {
width: parent.width
mode: listItem.mode
role: "Title"
text: titleText
}
ListItemText {
width: parent.width
mode: listItem.mode
role: "SubTitle"
text: subTitleText
}
}
}
model: ListModel {
ListElement {
titleText: "Title1"
subTitleText: "SubTitle1"
}
ListElement {
titleText: "Title2"
subTitleText: "SubTitle2"
}
ListElement {
titleText: "Title3"
subTitleText: "SubTitle3"
}
ListElement {
titleText: "Title4"
subTitleText: "SubTitle4"
}
}
}
import QtQuick 1.0
import com.nokia.symbian 1.0
ToolBar {
tools: ToolBarLayout {
ToolButton {
flat: true
iconSource: "toolbar-back"
}
ToolButton {
flat: true
iconSource: "toolbar-menu"
}
}
}
\ No newline at end of file
......@@ -28,6 +28,11 @@
<property name="title" type="QString" value="SelectionListItem"/>
</itemlibraryentry>
</node>
<node name="com.nokia.symbian.ListView" icon=":/symbianplugin/images/listview-icon16.png">
<itemlibraryentry name="ListView" category="Components Symbian" libraryIcon=":/symbianplugin/images/listview-icon.png" version="1.0" requiredImport="com.nokia.symbian">
<qml source=":/symbianplugin/source/SymbianListView.qml"/>
</itemlibraryentry>
</node>
<node name="com.nokia.symbian.ProgressBar" icon=":/symbianplugin/images/progressbar16.png">
<itemlibraryentry name="ProgressBar" category="Components Symbian" libraryIcon=":/symbianplugin/images/progressbar.png" version="1.0" requiredImport="com.nokia.symbian">
</itemlibraryentry>
......@@ -82,6 +87,7 @@
</node>
<node name="com.nokia.symbian.ToolBar" icon=":/symbianplugin/images/toolbar16.png">
<itemlibraryentry name="ToolBar" category="Components Symbian" libraryIcon=":/symbianplugin/images/toolbar.png" version="1.0" requiredImport="com.nokia.symbian">
<qml source=":/symbianplugin/source/ToolBar.qml"/>
</itemlibraryentry>
</node>
<node name="com.nokia.symbian.Switch" icon=":/symbianplugin/images/switchbutton16.png">
......
......@@ -37,5 +37,9 @@
<file>images/toolbar16.png</file>
<file>images/buttoncolumn.png</file>
<file>images/buttoncolumn16.png</file>
<file>source/ToolBar.qml</file>
<file>images/listview-icon.png</file>
<file>images/listview-icon16.png</file>
<file>source/SymbianListView.qml</file>
</qresource>
</RCC>
Supports Markdown
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