Skip to content

Commit f6895b6

Browse files
committed
release 1.0.4
0 parents  commit f6895b6

50 files changed

Lines changed: 4712 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

EditTextLabel4421.qml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
import QtQuick 1.1
2+
import BasicUIControls 1.0
3+
4+
Item {
5+
id: editTextLabel
6+
7+
width: 430
8+
height: defaultHeight
9+
10+
property int defaultHeight: 36
11+
12+
property string leftText
13+
property string inputText
14+
property alias inputTextFormat: labelInput.textFormat
15+
property int leftTextAvailableWidth: 127
16+
property real leftTextImplicitWidth: labelTitle.implicitWidth + labelTitle.anchors.leftMargin
17+
property alias labelFontFamily: labelTitle.font.family
18+
property alias labelFontSize: labelTitle.font.pixelSize
19+
property string kpiPostfix: leftText ? leftText : "editTextLabel"
20+
21+
signal clicked()
22+
23+
StyledRectangle {
24+
anchors.fill: parent
25+
color: "#ffffff"
26+
radius: colors.labelRadius
27+
leftClickMargin: 10
28+
topClickMargin: 3
29+
bottomClickMargin: 3
30+
onClicked: editTextLabel.clicked()
31+
32+
Rectangle {
33+
id: labelField
34+
color: "#F0F0F0"
35+
radius: colors.labelRadius
36+
anchors {
37+
fill: parent
38+
leftMargin: leftText == "" ? anchors.rightMargin : leftTextAvailableWidth + labelTitle.anchors.rightMargin
39+
topMargin: 5
40+
rightMargin: 5
41+
bottomMargin: 5
42+
}
43+
border {
44+
width: 1
45+
color: "#F0F0F0"
46+
}
47+
48+
Text {
49+
id: labelInput
50+
anchors {
51+
left: parent.left
52+
right: parent.right
53+
leftMargin: 5
54+
rightMargin: anchors.leftMargin
55+
verticalCenter: parent.verticalCenter
56+
}
57+
font {
58+
family: qfont.regular.name
59+
pixelSize: qfont.bodyText
60+
}
61+
elide: Text.ElideRight
62+
text: inputText
63+
color: "#000000"
64+
}
65+
}
66+
67+
Text {
68+
id: labelTitle
69+
anchors {
70+
verticalCenter: parent.verticalCenter
71+
left: parent.left
72+
leftMargin: 10
73+
right: labelField.left
74+
rightMargin: 10
75+
}
76+
font {
77+
family: qfont.semiBold.name
78+
pixelSize: qfont.titleText
79+
}
80+
elide: Text.ElideRight
81+
text: leftText
82+
color: "#000000"
83+
}
84+
}
85+
}

0 commit comments

Comments
 (0)