2 * satk - SIM application toolkit
3 * Copyright © 2011, Intel Corporation.
5 * This program is licensed under the terms and conditions of the
6 * Apache License, version 2.0. The full text of the Apache License is at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Written by - Luc Yriarte <luc.yriarte@linux.intel.com>
16 \brief Web browser box, dismissable.
22 - \b browserView : Web browser view.
24 - url: "http://127.0.0.1/"
25 - \b okRect : "Ok" button.
34 import MeeGo.Components 0.1
40 width: stkTheme.viewWidth
41 height: stkTheme.viewHeight
44 StkTheming { id: stkTheme }
45 color: stkTheme.viewBackgroundColor
48 onAccepted: console.log("Accepted")
52 objectName: "browserView"
53 anchors.top: title.bottom
55 anchors.left: parent.left
56 anchors.leftMargin: 10
57 anchors.bottom: okRect.top
58 anchors.bottomMargin: 10
59 anchors.right: parent.right
60 anchors.rightMargin: 10
61 contentWidth: childrenRect.width
62 contentHeight: childrenRect.height
64 property alias url: browserContent.url
67 objectName: "browserContent"
68 preferredWidth: parent.width
69 preferredHeight: parent.height
70 url: "http://127.0.0.1/"
71 onWidthChanged: browserView.contentWidth = width
72 onHeightChanged: browserView.contentHeight = height
73 onLoadFinished: browserView.contentY = -1 // redraw browserView
80 text: "SIM Application Toolkit"
81 anchors.top: parent.top
83 anchors.left: icon.right
84 anchors.leftMargin: 10
85 anchors.right: parent.right
86 anchors.rightMargin: 10
87 wrapMode: Text.WordWrap
88 color: stkTheme.titleFontColor
89 font.pixelSize: stkTheme.titleFontPixelSize
97 anchors.top: parent.top
99 anchors.left: parent.left
100 anchors.leftMargin: 10
106 anchors.horizontalCenter: parent.horizontalCenter
107 anchors.bottom: parent.bottom
108 anchors.bottomMargin: 10