|
|
|
|
@ -56,9 +56,9 @@ Kirigami.AbstractApplicationWindow { |
|
|
|
|
title: "Authentication Required" |
|
|
|
|
subtitle: "Authentication is needed to run `/usr/bin/ls` as the super user." |
|
|
|
|
iconName: "im-user-online" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Kirigami.PasswordField {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
actions: [ |
|
|
|
|
Kirigami.Action { |
|
|
|
|
text: "Details" |
|
|
|
|
@ -77,6 +77,26 @@ Kirigami.AbstractApplicationWindow { |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
DesktopSystemDialog { |
|
|
|
|
id: xdgDialog |
|
|
|
|
title: "Wallet access" |
|
|
|
|
subtitle: "Share your wallet with 'Somebody'." |
|
|
|
|
iconName: "kwallet" |
|
|
|
|
acceptable: false |
|
|
|
|
|
|
|
|
|
dialogButtonBox.standardButtons: DialogButtonBox.Ok | DialogButtonBox.Ok |
|
|
|
|
Component.onCompleted: { |
|
|
|
|
dialogButtonBox.standardButton(DialogButtonBox.Ok).text = "Share" |
|
|
|
|
} |
|
|
|
|
actions: [ |
|
|
|
|
Kirigami.Action { |
|
|
|
|
text: "Something Happens" |
|
|
|
|
iconName: "documentinfo" |
|
|
|
|
onTriggered: xdgDialog.acceptable = true |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
DesktopCSDSystemDialog { |
|
|
|
|
id: desktopCSDPolkit |
|
|
|
|
@ -293,6 +313,16 @@ Kirigami.AbstractApplicationWindow { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
Button { |
|
|
|
|
text: "XDG dialog (Desktop)" |
|
|
|
|
onClicked: { |
|
|
|
|
if (checkbox.checked) { |
|
|
|
|
xdgDialog.showFullScreen() |
|
|
|
|
} else { |
|
|
|
|
xdgDialog.show() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
Button { |
|
|
|
|
text: "Polkit dialog (Mobile)" |
|
|
|
|
onClicked: { |
|
|
|
|
|