29 lines
559 B
QML
29 lines
559 B
QML
|
|
import QtQuick
|
||
|
|
import QtQuick.Controls
|
||
|
|
BaseCommon
|
||
|
|
{
|
||
|
|
id: self
|
||
|
|
width: parent.width
|
||
|
|
height: 100
|
||
|
|
Rectangle
|
||
|
|
{
|
||
|
|
anchors.left: parent.left
|
||
|
|
border.color: "gray"
|
||
|
|
border.width: 1
|
||
|
|
height: parent.height - 4
|
||
|
|
anchors.right: parent.right
|
||
|
|
clip: true
|
||
|
|
TextEdit{
|
||
|
|
id: te
|
||
|
|
anchors.fill: parent
|
||
|
|
anchors.margins: 1
|
||
|
|
onTextChanged: {
|
||
|
|
value = text
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
function setValue(_value)
|
||
|
|
{
|
||
|
|
te.text = _value
|
||
|
|
}
|
||
|
|
}
|