mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-03-14 16:09:41 +08:00
40 lines
998 B
QML
40 lines
998 B
QML
import QtQuick 2.15
|
|
|
|
Row {
|
|
property alias caption: captionBox.text
|
|
property alias value: inputBox.text
|
|
property alias min: numValidator.bottom
|
|
property alias max: numValidator.top
|
|
property alias decimals: numValidator.decimals
|
|
|
|
width: 80;
|
|
height: 15
|
|
spacing: 4
|
|
//anchors.margins: 2
|
|
Text {
|
|
id: captionBox
|
|
width: 18; height: parent.height
|
|
color: "#AAAAAA"
|
|
font.pixelSize: 11; font.bold: true
|
|
}
|
|
PanelBorder {
|
|
height: parent.height
|
|
TextInput {
|
|
id: inputBox
|
|
color: "#AAAAAA"; selectionColor: "#FF7777AA"
|
|
font.pixelSize: 11
|
|
maximumLength: 10
|
|
focus: false
|
|
readOnly: true
|
|
selectByMouse: true
|
|
validator: DoubleValidator {
|
|
id: numValidator
|
|
bottom: 0; top: 1; decimals: 2
|
|
notation: DoubleValidator.StandardNotation
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|