import QtQuick 2.13 import QtQuick.Controls 2.13 import utils 1.0 import shared.popups 1.0 import shared.controls 1.0 // TODO: replace with StatusModal ModalPopup { id: popup //% "Search engine" title: qsTrId("search-engine") onClosed: { destroy() } Column { anchors.left: parent.left anchors.right: parent.right anchors.rightMargin: Style.current.padding anchors.leftMargin: Style.current.padding spacing: 0 ButtonGroup { id: searchEnginGroup } RadioButtonSelector { //% "None" title: qsTrId("none") buttonGroup: searchEnginGroup checked: appSettings.shouldShowBrowserSearchEngine === Constants.browserSearchEngineNone onCheckedChanged: { if (checked) { appSettings.shouldShowBrowserSearchEngine = Constants.browserSearchEngineNone } } } RadioButtonSelector { title: "Google" buttonGroup: searchEnginGroup checked: appSettings.shouldShowBrowserSearchEngine === Constants.browserSearchEngineGoogle onCheckedChanged: { if (checked) { appSettings.shouldShowBrowserSearchEngine = Constants.browserSearchEngineGoogle } } } RadioButtonSelector { title: "Yahoo!" buttonGroup: searchEnginGroup checked: appSettings.shouldShowBrowserSearchEngine === Constants.browserSearchEngineYahoo onCheckedChanged: { if (checked) { appSettings.shouldShowBrowserSearchEngine = Constants.browserSearchEngineYahoo } } } RadioButtonSelector { title: "DuckDuckGo" buttonGroup: searchEnginGroup checked: appSettings.shouldShowBrowserSearchEngine === Constants.browserSearchEngineDuckDuckGo onCheckedChanged: { if (checked) { appSettings.shouldShowBrowserSearchEngine = Constants.browserSearchEngineDuckDuckGo } } } } }