2023-02-14 20:39:18 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2023-02-14 20:39:18 +00:00
|
|
|
spacing: Style.current.halfPadding
|
|
|
|
|
|
|
|
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
|
|
|
|
font.pixelSize: Style.current.primaryTextFontSize
|
|
|
|
color: Theme.palette.dangerColor1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|