~nik90/cliffhanger/convergence-1

« back to all changes in this revision

Viewing changes to Cliffhanger.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2013-11-10 12:45:09 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: krnekhelesh@gmail.com-20131110124509-tm9cegstktd4l0dc
Added carousel and replaced boiler code with real code structure

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import QtQuick 2.0
2
2
import Ubuntu.Components 0.1
3
3
import "ui"
4
 
 
5
 
/*!
6
 
    \brief MainView with Tabs element.
7
 
           First Tab has a single Label and
8
 
           second Tab has a single ToolbarAction.
9
 
*/
 
4
import "graphics"
 
5
import "components"
10
6
 
11
7
MainView {
12
8
    // objectName for functional testing purposes (autopilot-qt5)
21
17
    */
22
18
    //automaticOrientation: true
23
19
 
24
 
    width: units.gu(100)
 
20
    width: units.gu(50)
25
21
    height: units.gu(75)
26
22
 
 
23
    // TODO: This is a temporary app background. Final background color needs to be decided.
 
24
    headerColor: UbuntuColors.coolGrey
 
25
    backgroundColor: UbuntuColors.coolGrey
 
26
    footerColor: UbuntuColors.coolGrey
 
27
 
27
28
    Tabs {
28
29
        id: tabs
29
30
 
30
 
        HelloTab {
31
 
            objectName: "helloTab"
32
 
        }
33
 
 
34
 
        WorldTab {
35
 
            objectName: "worldTab"
 
31
        // Home Tab
 
32
        Tab {
 
33
            title: "Home"
 
34
            page: HomePage {}
 
35
        }
 
36
 
 
37
        // Movies tab
 
38
        Tab {
 
39
            title: "Movies"
 
40
            page: MoviePage {}
 
41
        }
 
42
 
 
43
        // TV Show Tab
 
44
        Tab {
 
45
            title: "TV"
 
46
            page: TvPage {}
36
47
        }
37
48
    }
38
49
}