status-desktop/ui/app/AppLayouts/Profile/Sections/BrowserModals/EthereumExplorerModal.qml

77 lines
2.2 KiB
QML
Raw Normal View History

import QtQuick 2.13
import QtQuick.Controls 2.13
import utils 1.0
import "../../../../../shared"
import "../../../../../shared/status"
ModalPopup {
id: popup
2021-02-18 16:36:05 +00:00
//% "Ethereum explorer"
title: qsTrId("ethereum-explorer")
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
}
StatusRadioButtonRow {
2021-02-18 16:36:05 +00:00
//% "None"
text: qsTrId("none")
buttonGroup: searchEnginGroup
2021-03-16 16:24:35 +00:00
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerNone
onRadioCheckedChanged: {
if (checked) {
2021-03-16 16:24:35 +00:00
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerNone
}
}
}
StatusRadioButtonRow {
text: "etherscan.io"
buttonGroup: searchEnginGroup
2021-03-16 16:24:35 +00:00
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerEtherscan
onRadioCheckedChanged: {
if (checked) {
2021-03-16 16:24:35 +00:00
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerEtherscan
}
}
}
StatusRadioButtonRow {
text: "ethplorer.io"
buttonGroup: searchEnginGroup
2021-03-16 16:24:35 +00:00
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerEthplorer
onRadioCheckedChanged: {
if (checked) {
2021-03-16 16:24:35 +00:00
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerEthplorer
}
}
}
StatusRadioButtonRow {
text: "blockchair.com"
buttonGroup: searchEnginGroup
2021-03-16 16:24:35 +00:00
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerBlockchair
onRadioCheckedChanged: {
if (checked) {
2021-03-16 16:24:35 +00:00
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerBlockchair
}
}
}
}
}