~ubuntu-branches/ubuntu/saucy/unity8/saucy-proposed

« back to all changes in this revision

Viewing changes to Greeter/Infographics.qml

  • Committer: Package Import Robot
  • Author(s): Loïc Minier
  • Date: 2013-10-04 21:22:29 UTC
  • Revision ID: package-import@ubuntu.com-20131004212229-a2j9c8et8gfd7xue
Tags: 7.82+13.10.20131004.2-0ubuntu1
Revert 7.82+13.10.20131004.1-0ubuntu1 back to
7.81.3+13.10.20130927.3-0ubuntu1 due to CPU hogging issue with
7.82+13.10.20131004.1-0ubuntu1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    Connections {
30
30
        target: model
31
31
 
32
 
        onDataAboutToAppear: startHideAnimation() // hide "no data" label
33
32
        onDataAppeared: startShowAnimation()
34
33
 
35
34
        onDataAboutToChange: startHideAnimation()
 
35
 
36
36
        onDataChanged: startShowAnimation()
37
37
 
38
38
        onDataAboutToDisappear: startHideAnimation()
39
 
        onDataDisappeared: startShowAnimation() // show "no data" label
40
39
    }
41
40
 
42
41
    function startShowAnimation() {
43
 
        dotHideAnimTimer.stop()
44
 
        circleShrinkAnimTimer.stop()
45
 
        notification.hideAnim.stop()
46
 
 
47
42
        dotShowAnimTimer.startFromBeginning()
48
43
        notification.showAnim.start()
49
44
    }
50
45
 
51
46
    function startHideAnimation() {
52
 
        dotShowAnimTimer.stop()
53
 
        circleGrowAnimTimer.stop()
54
 
        notification.showAnim.stop()
55
 
 
56
47
        dotHideAnimTimer.startFromBeginning()
57
48
        notification.hideAnim.start()
58
49
    }