diff --git a/src/plugins/qmldesigner/symbianplugin/images/listview-icon.png b/src/plugins/qmldesigner/symbianplugin/images/listview-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..9c1327373dff42f72b104daf2ccfe9c209248871 Binary files /dev/null and b/src/plugins/qmldesigner/symbianplugin/images/listview-icon.png differ diff --git a/src/plugins/qmldesigner/symbianplugin/images/listview-icon16.png b/src/plugins/qmldesigner/symbianplugin/images/listview-icon16.png new file mode 100644 index 0000000000000000000000000000000000000000..1deac24a2a54895a22ec006f82f7d1ccdb8dfb77 Binary files /dev/null and b/src/plugins/qmldesigner/symbianplugin/images/listview-icon16.png differ diff --git a/src/plugins/qmldesigner/symbianplugin/source/SymbianListView.qml b/src/plugins/qmldesigner/symbianplugin/source/SymbianListView.qml new file mode 100644 index 0000000000000000000000000000000000000000..f9bead4d6b5ee72f77a167638d8560471d85ef2a --- /dev/null +++ b/src/plugins/qmldesigner/symbianplugin/source/SymbianListView.qml @@ -0,0 +1,53 @@ +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" + } + } +} diff --git a/src/plugins/qmldesigner/symbianplugin/source/ToolBar.qml b/src/plugins/qmldesigner/symbianplugin/source/ToolBar.qml new file mode 100644 index 0000000000000000000000000000000000000000..2bfd94e0e3e7e643e894ecab199812e1d73f24fd --- /dev/null +++ b/src/plugins/qmldesigner/symbianplugin/source/ToolBar.qml @@ -0,0 +1,15 @@ +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 diff --git a/src/plugins/qmldesigner/symbianplugin/symbian.metainfo b/src/plugins/qmldesigner/symbianplugin/symbian.metainfo index 84cd3770ee4bd2a26bbcc4a98c9b3570127eeb85..b69eb688418f51c1238cc795d58d60ba4b4ea14c 100644 --- a/src/plugins/qmldesigner/symbianplugin/symbian.metainfo +++ b/src/plugins/qmldesigner/symbianplugin/symbian.metainfo @@ -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"> diff --git a/src/plugins/qmldesigner/symbianplugin/symbianplugin.qrc b/src/plugins/qmldesigner/symbianplugin/symbianplugin.qrc index 83d6b410545d5c6a9484a9b6a49434f01eff70cb..2b5848e8cb6f30d8d8e54db58cbe3d845161751c 100644 --- a/src/plugins/qmldesigner/symbianplugin/symbianplugin.qrc +++ b/src/plugins/qmldesigner/symbianplugin/symbianplugin.qrc @@ -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>