1 /****************************************************************************
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
7 ** This file is part of the Qt Components project on Qt Labs.
10 ** This file contains pre-release code and may not be distributed.
11 ** You may use this file in accordance with the terms and conditions contained
12 ** in the Technology Preview License Agreement accompanying this package.
14 ** GNU Lesser General Public License Usage
15 ** Alternatively, this file may be used under the terms of the GNU Lesser
16 ** General Public License version 2.1 as published by the Free Software
17 ** Foundation and appearing in the file LICENSE.LGPL included in the
18 ** packaging of this file. Please review the following information to
19 ** ensure the GNU Lesser General Public License version 2.1 requirements
20 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22 ** If you have questions regarding the use of this file, please contact
23 ** Nokia at qt-info@nokia.com.
25 ****************************************************************************/
28 import com.nokia.meego 1.0
36 anchors.top: parent.top
37 anchors.bottom:myToolbar.top
38 orientation: screen.orientation
44 anchors.top: statusBar.bottom
45 // anchors.bottom: pageStack.top
51 anchors.top: toolBar.bottom
52 anchors.bottom: parent.bottom
59 ToolItem { iconId: "icon-m-toolbar-home"; onClicked: pageStack.pop(); }
60 ToolItem { iconId: "icon-m-toolbar-view-menu"; onClicked: myMenu.open(); }
61 ToolItem { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
72 ToolItem { iconId: "icon-m-toolbar-home"; onClicked: pageStack.pop(); }
73 ToolItem { iconId: "icon-m-toolbar-view-menu"; onClicked: myMenu.open();}
74 ToolItem { iconId: "icon-m-toolbar-close"; onClicked: Qt.quit(); }
85 contentHeight: mainContent.height
86 contentWidth: parent.width
90 anchors.centerIn: parent
96 onClicked:(pageStack.push(catComponent))
101 text: "Show a dialog"
102 onClicked:(pageStack.push(dialogComponent))
109 value: testSlider.value*500
115 roll: testSlider.value*500
116 pitch:testSlider2.value
144 anchors.centerIn: parent
145 source: "aureo600.jpg"
159 flickableDirection:Flickable.VerticalFlick
161 anchors.leftMargin:50;anchors.rightMargin:50
162 contentHeight: dialogcontent.height
163 contentWidth: parent.width
168 //anchors.left:parent.left;anchors.right:parent.right
169 anchors.leftMargin:150;anchors.rightMargin:150
179 anchors.left: parent.left; anchors.right: parent.Right
180 promptText: "Enter text here"
212 Component.onCompleted: {
213 if (mainpageComponent.status == Component.Ready)
214 pageStack.push(mainpageComponent);
216 console.log("Error loading component:", mainpageComponent.errorString());