First implementation
This commit is contained in:
33
qml/Controls/Indicator.qml
Normal file
33
qml/Controls/Indicator.qml
Normal file
@@ -0,0 +1,33 @@
|
||||
import QtQuick 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
|
||||
import Controls 1.0
|
||||
import Utils 1.0
|
||||
|
||||
GridLayout {
|
||||
columns: 2
|
||||
columnSpacing: Ui.scale(8)
|
||||
rowSpacing: Ui.scale(4)
|
||||
|
||||
property string label
|
||||
property string indicator
|
||||
property alias value: valueField
|
||||
|
||||
SecondaryLabel {
|
||||
text: label
|
||||
topPadding: lineCount == 1 ? Ui.scale(12) : 0
|
||||
Layout.columnSpan: 2
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: valueField
|
||||
selectByMouse: true
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
IndicatorLabel {
|
||||
text: indicator
|
||||
Layout.preferredWidth: Ui.scale(18)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user