34 lines
477 B

import QtQuick 2.0
Item
{
10 years ago
property alias value: textinput.text
id: editRoot
10 years ago
height: 20
width: 150
SourceSansProBold
{
id: boldFont
}
Rectangle {
anchors.fill: parent
radius: 4
TextInput {
id: textinput
10 years ago
text: value
anchors.fill: parent
10 years ago
wrapMode: Text.WrapAnywhere
clip: true
font.family: boldFont.name
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: textinput.forceActiveFocus()
}
}
}
}