summaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml')
-rw-r--r--qml/tapasboard/MainPage.qml38
-rw-r--r--qml/tapasboard/TopicPage.qml1
-rw-r--r--qml/tapasboard/main.qml18
3 files changed, 27 insertions, 30 deletions
diff --git a/qml/tapasboard/MainPage.qml b/qml/tapasboard/MainPage.qml
index 7337b12..de3240a 100644
--- a/qml/tapasboard/MainPage.qml
+++ b/qml/tapasboard/MainPage.qml
@@ -1,17 +1,31 @@
import QtQuick 1.1
-import com.nokia.meego 1.0
+import com.nokia.meego 1.1
+import com.nokia.extras 1.1
+import com.javispedro.tapasboard 1.0
Page {
- tools: commonTools
+ ListView {
+ id: favoritesView
+ anchors.fill: parent
+ model: FavoritesModel {
- Button {
- anchors {
- centerIn: parent
- }
- text: qsTr("Open board")
- onClicked: pageStack.push(Qt.resolvedUrl("BoardPage.qml"), {
- boardUrl: "http://support.tapatalk.com/mobiquo/mobiquo.php",
- rootForumId: 0
- })
- }
+ }
+ delegate: ListDelegate {
+ id: favoriteItem
+
+ 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("BoardPage.qml"), {
+ boardUrl: model.boardUrl,
+ rootForumId: 0
+ });
+ }
+ }
+ }
}
diff --git a/qml/tapasboard/TopicPage.qml b/qml/tapasboard/TopicPage.qml
index d3b2a35..805154f 100644
--- a/qml/tapasboard/TopicPage.qml
+++ b/qml/tapasboard/TopicPage.qml
@@ -84,6 +84,7 @@ Page {
font: UiConstants.TitleFont
visible: text != ""
textFormat: Text.PlainText
+ wrapMode: Text.Wrap
}
Text {
diff --git a/qml/tapasboard/main.qml b/qml/tapasboard/main.qml
index bfb4552..11a7e44 100644
--- a/qml/tapasboard/main.qml
+++ b/qml/tapasboard/main.qml
@@ -9,22 +9,4 @@ PageStackWindow {
MainPage {
id: mainPage
}
-
- ToolBarLayout {
- id: commonTools
- visible: true
- ToolIcon {
- platformIconId: "toolbar-view-menu"
- anchors.right: (parent === undefined) ? undefined : parent.right
- onClicked: (myMenu.status === DialogStatus.Closed) ? myMenu.open() : myMenu.close()
- }
- }
-
- Menu {
- id: myMenu
- visualParent: pageStack
- MenuLayout {
- MenuItem { text: qsTr("Sample menu item") }
- }
- }
}