d31c89382b183f908de4172b9a364bfa786d3796
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / qdeclarativeecmascript / data / changeslots / propertyChangeSlots.qml
1 import QtQuick 1.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 }