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

72 lines
2.1 KiB
QML
Raw Normal View History

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")
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")
ButtonGroup.group: searchEnginGroup
2021-03-16 16:24:35 +00:00
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerNone
onCheckedChanged: {
if (checked) {
2021-03-16 16:24:35 +00:00
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerNone
}
}
}
StatusRadioButton {
text: "etherscan.io"
ButtonGroup.group: searchEnginGroup
2021-03-16 16:24:35 +00:00
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerEtherscan
onCheckedChanged: {
if (checked) {
2021-03-16 16:24:35 +00:00
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerEtherscan
}
}
}
StatusRadioButton {
text: "ethplorer.io"
ButtonGroup.group: searchEnginGroup
2021-03-16 16:24:35 +00:00
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerEthplorer
onCheckedChanged: {
if (checked) {
2021-03-16 16:24:35 +00:00
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerEthplorer
}
}
}
StatusRadioButton {
text: "blockchair.com"
ButtonGroup.group: searchEnginGroup
2021-03-16 16:24:35 +00:00
checked: appSettings.useBrowserEthereumExplorer === Constants.browserEthereumExplorerBlockchair
onCheckedChanged: {
if (checked) {
2021-03-16 16:24:35 +00:00
appSettings.useBrowserEthereumExplorer = Constants.browserEthereumExplorerBlockchair
}
}
}
}
}