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.

38 lines
495 B

import QtQuick 2.0
10 years ago
import QtQuick.Layouts 1.1
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
color: "#f7f7f7"
TextInput {
id: textinput
10 years ago
text: value
anchors.fill: parent
font.family: boldFont.name
clip: true
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
onClicked: textinput.forceActiveFocus()
}
}
}
}