~ubuntu-branches/ubuntu/saucy/qtdeclarative-opensource-src/saucy

« back to all changes in this revision

Viewing changes to tests/auto/qml/qqmlecmascript/data/changeslots/propertyChangeSlots.qml

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2013-02-05 14:17:19 UTC
  • Revision ID: package-import@ubuntu.com-20130205141719-qqeyml8wslpyez52
Tags: upstream-5.0.1
ImportĀ upstreamĀ versionĀ 5.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
 
 
3
Item {
 
4
    property int changeCount: 0
 
5
 
 
6
    property bool normalName: false
 
7
    property bool _nameWithUnderscore: false
 
8
    property bool ____nameWithUnderscores: false
 
9
 
 
10
    onNormalNameChanged: {
 
11
        changeCount = changeCount + 1;
 
12
    }
 
13
 
 
14
    on_NameWithUnderscoreChanged: {
 
15
        changeCount = changeCount + 2;
 
16
    }
 
17
 
 
18
    on____NameWithUnderscoresChanged: {
 
19
        changeCount = changeCount + 3;
 
20
    }
 
21
 
 
22
    Component.onCompleted: {
 
23
        normalName = true;
 
24
        _nameWithUnderscore = true;
 
25
        ____nameWithUnderscores = true;
 
26
    }
 
27
}