import QtQuick 1.0
import com.nokia.symbian 1.0

Page {
    id: mainPage

    Text {
        id: firstText
        anchors.centerIn: parent
        text: qsTr("Hello world!")
        color: platformStyle.colorNormalLight
        font.pixelSize: 20
    }

    Text {
        id: secondText
        text: qsTr("Good Morning")
        color: "white"
        font.pointSize: 15
        anchors.left: firstText.left
        anchors.top: firstText.bottom
        anchors.topMargin: 20
    }

    ListView {
        id: listview1
        x: -242.000
        y: -157.000
        width: 360.000
        height: 320.000
        clip: true
        header: ListHeading {
            ListItemText {
                text: "ListHeading"
                anchors.fill: parent.paddingItem
                role: "Heading"
            }
        }
        delegate: ListItem {
            id: listItem
            Column {
                anchors.fill: parent.paddingItem
                ListItemText {
                    width: parent.width
                    text: titleText
                    role: "Title"
                    mode: listItem.mode
                }

                ListItemText {
                    width: parent.width
                    text: subTitleText
                    role: "SubTitle"
                    mode: listItem.mode
                }
            }
        }
        model: ListModel {
            ListElement {
                titleText: "Title1"
                subTitleText: "SubTitle1"
            }

            ListElement {
                titleText: "Title2"
                subTitleText: "SubTitle2"
            }

            ListElement {
                titleText: "Title3"
                subTitleText: "SubTitle3"
            }

            ListElement {
                titleText: "Title4"
                subTitleText: "SubTitle4"
            }
        }
    }
}
