2020-06-17 19:31:01 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-06-10 20:32:04 +00:00
|
|
|
import "../imports"
|
|
|
|
|
|
|
|
Item {
|
|
|
|
property string text: "My Text"
|
|
|
|
property string label: "My Label"
|
2020-07-02 15:14:31 +00:00
|
|
|
property string fontFamily: Style.current.fontRegular.name
|
2020-06-10 20:32:04 +00:00
|
|
|
readonly property int labelMargin: 7
|
|
|
|
|
|
|
|
id: inputBox
|
|
|
|
height: textItem.height + inputLabel.height + labelMargin
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-06-10 20:32:04 +00:00
|
|
|
id: inputLabel
|
|
|
|
text: inputBox.label
|
|
|
|
font.weight: Font.Medium
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 0
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 0
|
|
|
|
font.pixelSize: 13
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.darkGrey
|
2020-06-10 20:32:04 +00:00
|
|
|
}
|
|
|
|
|
2020-06-19 18:21:02 +00:00
|
|
|
StyledTextEdit {
|
2020-06-10 20:32:04 +00:00
|
|
|
id: textItem
|
|
|
|
text: inputBox.text
|
2020-07-01 15:12:46 +00:00
|
|
|
font.family: fontFamily
|
2020-06-10 20:32:04 +00:00
|
|
|
selectByMouse: true
|
|
|
|
readOnly: true
|
|
|
|
font.weight: Font.Medium
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 0
|
|
|
|
anchors.top: inputLabel.bottom
|
|
|
|
anchors.topMargin: inputBox.labelMargin
|
|
|
|
font.pixelSize: 15
|
2020-07-02 15:14:31 +00:00
|
|
|
color: Style.current.black
|
2020-06-10 20:32:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;formeditorColor:"#ffffff";formeditorZoom:1.25}
|
|
|
|
}
|
|
|
|
##^##*/
|