import QtQuick 1.1 import com.nokia.meego 1.1 import com.nokia.extras 1.1 import com.javispedro.tapasboard 1.0 Page { id: forumPage anchors.leftMargin: UiConstants.DefaultMargin anchors.rightMargin: UiConstants.DefaultMargin property string boardUrl; property int forumId; tools: ToolBarLayout { ToolIcon { id: backToolIcon platformIconId: "toolbar-back" anchors.left: parent.left onClicked: pageStack.pop() } } ListView { id: topicsView anchors.fill: parent model: ForumModel { boardUrl: forumPage.boardUrl forumId: forumPage.forumId } delegate: EmptyListDelegate { id: topicItem height: Math.max(topicItemColumn.height + UiConstants.ButtonSpacing * 2, UiConstants.ListItemHeightDefault) Column { id: topicItemColumn anchors.left: parent.left anchors.right: topicItemImage.left anchors.verticalCenter: parent.verticalCenter Text { text: model.title width: parent.width font: UiConstants.TitleFont wrapMode: Text.Wrap } } Image { id: topicItemImage source: "image://theme/icon-m-common-drilldown-arrow" + (theme.inverted ? "-inverse" : "") anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter } onClicked: { pageStack.push(Qt.resolvedUrl("TopicPage.qml"), { boardUrl: forumPage.boardUrl, topicId: model.topicId }); } } } ScrollDecorator { flickableItem: topicsView } }