2024-06-10 10:37:39 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
|
|
|
StatusButton {
|
2024-07-17 15:48:56 +00:00
|
|
|
required property string formattedValue
|
|
|
|
property bool markAsInvalid: false
|
2024-06-10 10:37:39 +00:00
|
|
|
|
2024-07-17 15:48:56 +00:00
|
|
|
text: qsTr("Max. %1").arg(formattedValue)
|
|
|
|
type: markAsInvalid ? StatusBaseButton.Type.Danger
|
|
|
|
: StatusBaseButton.Type.Normal
|
2024-06-10 10:37:39 +00:00
|
|
|
|
|
|
|
horizontalPadding: 8
|
|
|
|
verticalPadding: 3
|
2024-07-17 15:48:56 +00:00
|
|
|
implicitHeight: 22
|
|
|
|
|
2024-06-10 10:37:39 +00:00
|
|
|
radius: 20
|
|
|
|
font.pixelSize: 12
|
|
|
|
font.weight: Font.Normal
|
|
|
|
}
|