2021-01-04 21:23:20 +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
|
|
|
//% "Ethereum explorer"
|
|
|
|
title: qsTrId("ethereum-explorer")
|
2021-01-04 21:23:20 +00:00
|
|
|
|
|
|
|
onClosed: {
|
|
|
|
destroy()
|
|
|
|
}
|
|
|
|
|
|
|
|
Column {
|
|
|
|
spacing: Style.current.bigPadding
|
|
|
|
width: parent.width
|
|
|
|
|
|
|
|
ButtonGroup {
|
|
|
|
id: searchEnginGroup
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusRadioButton {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "None"
|
|
|
|
text: qsTrId("none")
|
2021-01-04 21:23:20 +00:00
|
|
|
ButtonGroup.group: searchEnginGroup
|
2021-03-16 16:24:35 +00:00
|
|
|
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerNone
|
2021-01-04 21:23:20 +00:00
|
|
|
onCheckedChanged: {
|
|
|
|
if (checked) {
|
2021-03-16 16:24:35 +00:00
|
|
|
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerNone
|
2021-01-04 21:23:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusRadioButton {
|
|
|
|
text: "etherscan.io"
|
|
|
|
ButtonGroup.group: searchEnginGroup
|
2021-03-16 16:24:35 +00:00
|
|
|
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerEtherscan
|
2021-01-04 21:23:20 +00:00
|
|
|
onCheckedChanged: {
|
|
|
|
if (checked) {
|
2021-03-16 16:24:35 +00:00
|
|
|
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerEtherscan
|
2021-01-04 21:23:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusRadioButton {
|
|
|
|
text: "ethplorer.io"
|
|
|
|
ButtonGroup.group: searchEnginGroup
|
2021-03-16 16:24:35 +00:00
|
|
|
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerEthplorer
|
2021-01-04 21:23:20 +00:00
|
|
|
onCheckedChanged: {
|
|
|
|
if (checked) {
|
2021-03-16 16:24:35 +00:00
|
|
|
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerEthplorer
|
2021-01-04 21:23:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusRadioButton {
|
|
|
|
text: "blockchair.com"
|
|
|
|
ButtonGroup.group: searchEnginGroup
|
2021-03-16 16:24:35 +00:00
|
|
|
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerBlockchair
|
2021-01-04 21:23:20 +00:00
|
|
|
onCheckedChanged: {
|
|
|
|
if (checked) {
|
2021-03-16 16:24:35 +00:00
|
|
|
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerBlockchair
|
2021-01-04 21:23:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|