2024-10-15 19:26:12 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
2023-01-23 15:50:34 +00:00
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
Control {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property string holdings
|
|
|
|
property string permissions
|
|
|
|
property string channels
|
|
|
|
|
|
|
|
spacing: 8
|
|
|
|
|
|
|
|
QtObject {
|
|
|
|
id: d
|
|
|
|
|
|
|
|
property int iconSize: 20
|
|
|
|
}
|
|
|
|
|
|
|
|
contentItem: ColumnLayout {
|
|
|
|
spacing: 4
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
spacing: root.spacing
|
|
|
|
|
|
|
|
StatusIcon {
|
|
|
|
Layout.preferredWidth: d.iconSize
|
|
|
|
Layout.preferredHeight: d.iconSize
|
|
|
|
Layout.alignment: Qt.AlignTop
|
|
|
|
color: Theme.palette.dangerColor1
|
|
|
|
icon: "warning"
|
|
|
|
}
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
wrapMode: Text.Wrap
|
2024-10-15 19:26:12 +00:00
|
|
|
font.pixelSize: Theme.primaryTextFontSize
|
2023-01-23 15:50:34 +00:00
|
|
|
color: Theme.palette.dangerColor1
|
|
|
|
font.bold: true
|
|
|
|
text: qsTr("Conflicts with existing permission:")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.leftMargin: root.spacing + d.iconSize
|
|
|
|
Layout.fillWidth: true
|
|
|
|
wrapMode: Text.Wrap
|
2024-10-15 19:26:12 +00:00
|
|
|
font.pixelSize: Theme.primaryTextFontSize
|
2023-01-23 15:50:34 +00:00
|
|
|
font.bold: true
|
|
|
|
text: qsTr("\"Anyone who holds %1 can %2 in %3\"").arg(root.holdings).arg(root.permissions).arg(root.channels)
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.leftMargin: root.spacing + d.iconSize
|
|
|
|
Layout.fillWidth: true
|
|
|
|
wrapMode: Text.Wrap
|
2024-10-15 19:26:12 +00:00
|
|
|
font.pixelSize: Theme.primaryTextFontSize
|
2023-01-23 15:50:34 +00:00
|
|
|
text: qsTr("Edit permissions to resolve a conflict.")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|