aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktextdocument/data/text.qml
blob: d1b9ee7203159d469e9b797c3f984e3aa0a3dc5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import QtQuick

TextEdit {
    id: te
    property int sourceChangeCount: 0
    property int modifiedChangeCount: 0
    property var statusHistory: []

    width: 320; height: 240
    text: "" // this is not a document modification

    textDocument.onSourceChanged: ++te.sourceChangeCount
    textDocument.onModifiedChanged: ++te.modifiedChangeCount
    textDocument.onStatusChanged: te.statusHistory.push(textDocument.status)
}