aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/changeslots/propertyChangeSlots.qml
blob: f91fb71f1fc3f57aca23b147496a807583b51808 (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 2.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;
    }
}