forked from isaevi/PodcastLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLabeledTextInput.qml
40 lines (33 loc) · 918 Bytes
/
LabeledTextInput.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import QtQuick 2.0
import QtQuick.Layouts 1.1
FocusScope {
id: labeledTextInput
width: 100
height: input.height + 12
property alias title: label.text
property alias input: input.text
RowLayout {
id: row
anchors.fill: parent
spacing: 4
Text {
id: label
anchors.verticalCenter: parent.verticalCenter
}
Rectangle {
color: "lightsteelblue"
border.color: "gray"
Layout.fillWidth: true
anchors.verticalCenter: parent.verticalCenter
height: input.height + 8
TextInput {
id: input
width: parent.width-8
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
focus: true
clip: true
}
}
}
}