2019-04-29 01:01:38 +10:00
|
|
|
import QtQuick 2.7
|
2019-04-29 05:45:42 +10:00
|
|
|
import QtQuick.Layouts 1.3
|
2019-04-29 05:18:36 +10:00
|
|
|
import "../Base"
|
2019-04-29 01:01:38 +10:00
|
|
|
|
2019-04-29 05:18:36 +10:00
|
|
|
HRowLayout {
|
2019-04-29 01:01:38 +10:00
|
|
|
property alias text: noticeLabel.text
|
|
|
|
property alias color: noticeLabel.color
|
|
|
|
property alias font: noticeLabel.font
|
|
|
|
property alias backgroundColor: noticeLabelBackground.color
|
|
|
|
property alias radius: noticeLabelBackground.radius
|
|
|
|
|
2019-04-29 05:18:36 +10:00
|
|
|
HLabel {
|
2019-04-29 01:01:38 +10:00
|
|
|
id: noticeLabel
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
padding: 3
|
|
|
|
leftPadding: 10
|
|
|
|
rightPadding: 10
|
|
|
|
|
|
|
|
Layout.margins: 10
|
|
|
|
Layout.alignment: Qt.AlignCenter
|
|
|
|
Layout.maximumWidth: parent.width - Layout.margins * 2
|
|
|
|
|
|
|
|
background: Rectangle {
|
|
|
|
id: noticeLabelBackground
|
2019-04-29 05:18:36 +10:00
|
|
|
color: HStyle.box.background
|
|
|
|
radius: HStyle.box.radius
|
2019-04-29 01:01:38 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|