2024-02-26 09:39:08 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import QtQml.Models 2.15
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
2024-10-15 19:26:12 +00:00
|
|
|
import StatusQ.Core.Theme 0.1
|
2024-02-26 09:39:08 +00:00
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
|
|
|
CommonContactDialog {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
readonly property bool markAsUntrusted: ctrlMarkAsUntrusted.checked
|
|
|
|
readonly property bool removeContact: ctrlRemoveContact.checked
|
|
|
|
|
2024-10-29 18:08:12 +00:00
|
|
|
title: qsTr("Remove trust mark")
|
2024-02-26 09:39:08 +00:00
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.fillWidth: true
|
2024-10-15 19:26:12 +00:00
|
|
|
Layout.bottomMargin: Theme.halfPadding
|
2024-02-26 09:39:08 +00:00
|
|
|
wrapMode: Text.WordWrap
|
2024-11-04 21:47:59 +00:00
|
|
|
text: qsTr("%1 will no longer be marked as trusted. This is only visible to you.").arg(mainDisplayName)
|
2024-02-26 09:39:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusCheckBox {
|
|
|
|
id: ctrlMarkAsUntrusted
|
|
|
|
text: qsTr("Mark %1 as untrusted").arg(mainDisplayName)
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusCheckBox {
|
|
|
|
id: ctrlRemoveContact
|
|
|
|
text: qsTr("Remove contact")
|
|
|
|
}
|
|
|
|
|
|
|
|
rightButtons: ObjectModel {
|
|
|
|
StatusFlatButton {
|
|
|
|
text: qsTr("Cancel")
|
|
|
|
onClicked: root.close()
|
|
|
|
}
|
|
|
|
StatusButton {
|
|
|
|
type: StatusBaseButton.Type.Danger
|
2024-10-29 18:08:12 +00:00
|
|
|
text: qsTr("Remove trust mark")
|
2024-02-26 09:39:08 +00:00
|
|
|
onClicked: root.accepted()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|