blob: be9280f952844ce15722e90195ee832a37535d81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import QtQuick
TextEdit {
id: te
property int sourceChangeCount: 0
property int modifiedChangeCount: 0
property var statusHistory: []
width: 320; height: 240
text: "Hello Qt"
focus: true
textDocument.onSourceChanged: ++te.sourceChangeCount
textDocument.onModifiedChanged: ++te.modifiedChangeCount
textDocument.onStatusChanged: te.statusHistory.push(textDocument.status)
}
|