2020-12-29 20:34:53 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import "../../../../imports"
|
|
|
|
import "../../../../shared"
|
|
|
|
import "../../../../shared/status"
|
|
|
|
|
|
|
|
ModalPopup {
|
|
|
|
id: popup
|
|
|
|
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Open links with..."
|
|
|
|
title: qsTrId("open-links-with---")
|
2020-12-29 20:34:53 +00:00
|
|
|
|
|
|
|
onClosed: {
|
|
|
|
destroy()
|
|
|
|
}
|
|
|
|
|
|
|
|
Column {
|
2021-03-19 10:25:29 +00:00
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Style.current.padding
|
|
|
|
anchors.leftMargin: Style.current.padding
|
|
|
|
|
|
|
|
spacing: 0
|
2020-12-29 20:34:53 +00:00
|
|
|
|
|
|
|
ButtonGroup {
|
|
|
|
id: openLinksWithGroup
|
|
|
|
}
|
|
|
|
|
2021-03-19 10:25:29 +00:00
|
|
|
StatusRadioButtonRow {
|
2020-12-29 20:34:53 +00:00
|
|
|
text: "Status"
|
2021-03-19 10:25:29 +00:00
|
|
|
buttonGroup: openLinksWithGroup
|
2020-12-29 20:34:53 +00:00
|
|
|
checked: appSettings.openLinksInStatus
|
2021-03-19 10:25:29 +00:00
|
|
|
onRadioCheckedChanged: {
|
2020-12-29 20:34:53 +00:00
|
|
|
if (checked) {
|
|
|
|
appSettings.openLinksInStatus = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-19 10:25:29 +00:00
|
|
|
StatusRadioButtonRow {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "My default browser"
|
|
|
|
text: qsTrId("my-default-browser")
|
2021-03-19 10:25:29 +00:00
|
|
|
buttonGroup: openLinksWithGroup
|
2020-12-29 20:34:53 +00:00
|
|
|
checked: !appSettings.openLinksInStatus
|
2021-03-19 10:25:29 +00:00
|
|
|
onRadioCheckedChanged: {
|
2020-12-29 20:34:53 +00:00
|
|
|
if (checked) {
|
|
|
|
appSettings.openLinksInStatus = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
|
|
}
|
|
|
|
##^##*/
|