2024-10-15 19:26:12 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
2023-02-14 20:39:18 +00:00
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
Control {
|
|
|
|
id: root
|
|
|
|
|
2023-03-02 15:58:26 +00:00
|
|
|
property alias text: warningText.text
|
|
|
|
|
2024-10-15 19:26:12 +00:00
|
|
|
spacing: Theme.halfPadding
|
2023-02-14 20:39:18 +00:00
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: d
|
|
|
|
|
2023-03-02 15:58:26 +00:00
|
|
|
readonly property int iconSize: 20
|
2023-02-14 20:39:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
contentItem: RowLayout {
|
|
|
|
spacing: root.spacing
|
|
|
|
|
|
|
|
StatusIcon {
|
|
|
|
Layout.preferredWidth: d.iconSize
|
|
|
|
Layout.preferredHeight: d.iconSize
|
|
|
|
Layout.alignment: Qt.AlignTop
|
|
|
|
|
|
|
|
color: Theme.palette.dangerColor1
|
|
|
|
icon: "warning"
|
|
|
|
}
|
2023-03-02 15:58:26 +00:00
|
|
|
|
2023-02-14 20:39:18 +00:00
|
|
|
StatusBaseText {
|
2023-03-02 15:58:26 +00:00
|
|
|
id: warningText
|
|
|
|
|
2023-02-14 20:39:18 +00:00
|
|
|
Layout.fillWidth: true
|
|
|
|
wrapMode: Text.Wrap
|
2024-10-15 19:26:12 +00:00
|
|
|
font.pixelSize: Theme.primaryTextFontSize
|
2023-02-14 20:39:18 +00:00
|
|
|
color: Theme.palette.dangerColor1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|