2024-06-10 13:32:37 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
2024-01-30 13:15:58 +00:00
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
import StatusQ.Popups.Dialog 0.1
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
ColumnLayout {
|
2024-02-20 07:43:31 +00:00
|
|
|
id: root
|
|
|
|
|
|
|
|
property alias text: sectionTitle.text
|
2024-01-30 13:15:58 +00:00
|
|
|
|
2024-06-10 13:32:37 +00:00
|
|
|
signal infoButtonClicked
|
|
|
|
|
2024-01-30 13:15:58 +00:00
|
|
|
spacing: 0
|
|
|
|
|
|
|
|
StatusDialogDivider {
|
|
|
|
Layout.fillWidth: true
|
2024-10-15 19:26:12 +00:00
|
|
|
Layout.bottomMargin: Theme.halfPadding
|
2024-01-30 13:15:58 +00:00
|
|
|
}
|
|
|
|
RowLayout {
|
|
|
|
Layout.fillWidth: true
|
2024-10-15 19:26:12 +00:00
|
|
|
Layout.leftMargin: Theme.padding
|
|
|
|
Layout.rightMargin: Theme.smallPadding
|
2024-01-30 13:15:58 +00:00
|
|
|
Layout.bottomMargin: 4
|
|
|
|
StatusBaseText {
|
2024-02-20 07:43:31 +00:00
|
|
|
id: sectionTitle
|
|
|
|
|
2024-01-30 13:15:58 +00:00
|
|
|
color: Theme.palette.baseColor1
|
|
|
|
}
|
|
|
|
Item { Layout.fillWidth: true }
|
|
|
|
StatusFlatButton {
|
|
|
|
Layout.preferredWidth: 32
|
|
|
|
Layout.preferredHeight: 32
|
2024-02-20 07:43:31 +00:00
|
|
|
visible: !!root.text
|
2024-01-30 13:15:58 +00:00
|
|
|
icon.name: "info"
|
|
|
|
textColor: Theme.palette.baseColor1
|
|
|
|
horizontalPadding: 0
|
|
|
|
verticalPadding: 0
|
2024-06-10 13:32:37 +00:00
|
|
|
onClicked: root.infoButtonClicked()
|
2024-01-30 13:15:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|