aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/changeslots/propertyChangeSlots.qml
blob: d31c89382b183f908de4172b9a364bfa786d3796 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import QtQuick 1.0

Item {
    property int changeCount: 0

    property bool normalName: false
    property bool _nameWithUnderscore: false
    property bool ____nameWithUnderscores: false

    onNormalNameChanged: {
        changeCount = changeCount + 1;
    }

    on_NameWithUnderscoreChanged: {
        changeCount = changeCount + 2;
    }

    on____NameWithUnderscoresChanged: {
        changeCount = changeCount + 3;
    }

    Component.onCompleted: {
        normalName = true;
        _nameWithUnderscore = true;
        ____nameWithUnderscores = true;
    }
}