blob: 95444711146c05bd34bb5cfef695ab530a6f2117 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import QtQuick
TextEdit {
id: te
property int sourceChangeCount: 0
property int modifiedChangeCount: 0
property var statusHistory: []
text: "" // this is not a document modification
textDocument.onSourceChanged: ++te.sourceChangeCount
textDocument.onModifiedChanged: ++te.modifiedChangeCount
textDocument.onStatusChanged: te.statusHistory.push(textDocument.status)
}
|