You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
470 B
32 lines
470 B
import QtQuick 2.0
|
|
|
|
Item
|
|
{
|
|
property alias text: textinput.text
|
|
id: editRoot
|
|
|
|
SourceSansProBold
|
|
{
|
|
id: boldFont
|
|
}
|
|
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
radius: 4
|
|
color: "#f7f7f7"
|
|
TextInput {
|
|
id: textinput
|
|
text: text
|
|
anchors.fill: parent
|
|
wrapMode: Text.WrapAnywhere
|
|
clip: true
|
|
font.family: boldFont.name
|
|
MouseArea {
|
|
id: mouseArea
|
|
anchors.fill: parent
|
|
hoverEnabled: true
|
|
onClicked: textinput.forceActiveFocus()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|