16 lines
430 B
QML
16 lines
430 B
QML
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)
|
|
}
|