2024-10-15 19:26:12 +00:00
|
|
|
import QtQuick 2.15
|
2022-03-01 10:14:13 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
|
|
|
Item {
|
2023-12-26 10:19:41 +00:00
|
|
|
id: root
|
2022-03-01 10:14:13 +00:00
|
|
|
|
|
|
|
property alias text: label.text
|
|
|
|
|
2023-12-26 10:19:41 +00:00
|
|
|
implicitHeight: childrenRect.height
|
|
|
|
implicitWidth: childrenRect.width
|
|
|
|
|
2022-03-01 10:14:13 +00:00
|
|
|
StatusIcon {
|
|
|
|
id: errorIcon
|
|
|
|
icon: "warning"
|
|
|
|
color: Theme.palette.dangerColor1
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
anchors.left: parent.left
|
|
|
|
}
|
2023-12-26 10:19:41 +00:00
|
|
|
|
2022-03-01 10:14:13 +00:00
|
|
|
StatusBaseText {
|
|
|
|
id: label
|
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
anchors.left: errorIcon.right
|
2024-10-15 19:26:12 +00:00
|
|
|
anchors.leftMargin: Theme.halfPadding
|
2022-03-01 10:14:13 +00:00
|
|
|
font.pixelSize: 13
|
|
|
|
color: Theme.palette.dangerColor1
|
|
|
|
}
|
|
|
|
}
|