~mzanetti/unity8/fix-left-edge-on-spread

« back to all changes in this revision

Viewing changes to qml/Greeter/Clock.qml

  • Committer: Michael Zanetti
  • Date: 2015-01-12 11:21:17 UTC
  • mfrom: (1459.1.85 unity8)
  • Revision ID: michael.zanetti@canonical.com-20150112112117-0x9srs9dx0ndp60g
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        }
35
35
    }
36
36
 
 
37
    Connections {
 
38
        target: i18n
 
39
        onLanguageChanged: {
 
40
            if (visible) {
 
41
                timeLabel.text = Qt.formatTime(clock.currentDate); // kicks time
 
42
                clock.currentDate = new Date(); // kicks date
 
43
            }
 
44
        }
 
45
    }
 
46
 
37
47
    Indicators.SharedUnityMenuModel {
38
48
        id: timeModel
39
49
        objectName: "timeModel"
43
53
        menuObjectPath: clock.visible ? "/com/canonical/indicator/datetime/phone" : ""
44
54
    }
45
55
 
46
 
    Indicators.RootActionState {
 
56
    Indicators.ModelActionRootState {
47
57
        menu: timeModel.model
48
58
        onUpdated: {
49
59
            if (timeLabel.text != rightLabel) {