summaryrefslogtreecommitdiff
path: root/tests/auto/declarative/qdeclarativexmlhttprequest/data/staticStateValues.qml
blob: 1b701e90ffa1c2e170720cbfb6cde83c68710508 (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
import QtQuick 2.0

QtObject {
    property int unsent: XMLHttpRequest.UNSENT
    property int opened: XMLHttpRequest.OPENED
    property int headers_received: XMLHttpRequest.HEADERS_RECEIVED
    property int loading: XMLHttpRequest.LOADING
    property int done: XMLHttpRequest.DONE

    Component.onCompleted: {
        // Attempt to overwrite and delete values
        XMLHttpRequest.UNSENT = 9;
        XMLHttpRequest.OPENED = 9;
        XMLHttpRequest.HEADERS_RECEIVED = 9;
        XMLHttpRequest.LOADING = 9;
        XMLHttpRequest.DONE = 9;

        delete XMLHttpRequest.UNSENT;
        delete XMLHttpRequest.OPENED;
        delete XMLHttpRequest.HEADERS_RECEIVED;
        delete XMLHttpRequest.LOADING;
        delete XMLHttpRequest.DONE;
    }
}