~ci-train-bot/ubuntu-settings-components/ubuntu-settings-components-ubuntu-zesty-2106

« back to all changes in this revision

Viewing changes to SettingsComponents.qml

  • Committer: Andrea Cimitan
  • Date: 2013-06-07 15:39:04 UTC
  • Revision ID: andrea.cimitan@gmail.com-20130607153904-qvlflcvh4t09ublu
Some changes, renaming and new tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import QtQuick 2.0
20
20
import Ubuntu.Components 0.1
21
 
import "SystemComponents"
 
21
import "SettingsComponents"
22
22
 
23
23
MainView {
24
24
    // Note! applicationName needs to match the .desktop filename
25
 
    applicationName: "SystemComponents"
 
25
    applicationName: "SettingsComponents"
26
26
 
27
27
    width: units.gu(42)
28
28
    height: units.gu(75)
29
29
 
30
30
    ListModel {
31
31
        id: mediaPlayerModel
32
 
        ListElement { song: "Mine"; artist: "Taylor Swift"; album: "Speak Now"; albumArt: "SystemComponents/MediaPlayer/speak-now.jpg"}
33
 
        ListElement { song: "Stony Ground"; artist: "Richard Thompson"; album: "Electric"; albumArt: "SystemComponents/MediaPlayer/electric.jpg"}
34
 
        ListElement { song: "Los Robots"; artist: "Kraftwerk"; album: "The Man-Machine"; albumArt: "SystemComponents/MediaPlayer/the-man-machine.jpg"}
 
32
        ListElement { song: "Mine"; artist: "Taylor Swift"; album: "Speak Now"; albumArt: "SettingsComponents/MediaPlayer/speak-now.jpg"}
 
33
        ListElement { song: "Stony Ground"; artist: "Richard Thompson"; album: "Electric"; albumArt: "SettingsComponents/MediaPlayer/electric.jpg"}
 
34
        ListElement { song: "Los Robots"; artist: "Kraftwerk"; album: "The Man-Machine"; albumArt: "SettingsComponents/MediaPlayer/the-man-machine.jpg"}
35
35
    }
36
36
 
37
37
    ListModel {
38
38
        id: timeZoneModel
39
 
        ListElement { city: "San Francisco"; timeZone: -8 }
40
 
        ListElement { city: "London"; timeZone: 0 }
41
 
        ListElement { city: "Rome"; timeZone: 1 }
 
39
        ListElement { city: "San Francisco"; time: "3:00am" }
 
40
        ListElement { city: "London"; time: "11:00am" }
 
41
        ListElement { city: "Rome"; time: "12:00am" }
42
42
    }
43
43
 
44
44
    ListModel {
49
49
    }
50
50
 
51
51
    Page {
52
 
        title: "SystemComponents"
 
52
        title: "SettingsComponents"
53
53
 
54
54
        Flickable {
55
55
            id: flickable
113
113
 
114
114
                        TimeZoneMenu {
115
115
                            city: model.city
116
 
                            timeZone: model.timeZone
 
116
                            time: model.time
117
117
                        }
118
118
                    }
119
119
                }