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
checked: appSettings.browserEthereumExplorer === Constants.browserEthereumExplorerNone
onCheckedChanged: {
if (checked) {
appSettings.browserEthereumExplorer = Constants.browserEthereumExplorerNone
}
}
}
StatusRadioButton {
text: "etherscan.io"
ButtonGroup.group: searchEnginGroup
checked: appSettings.browserEthereumExplorer === Constants.browserEthereumExplorerEtherscan
onCheckedChanged: {
if (checked) {
appSettings.browserEthereumExplorer = Constants.browserEthereumExplorerEtherscan
}
}
}
StatusRadioButton {
text: "ethplorer.io"
ButtonGroup.group: searchEnginGroup
checked: appSettings.browserEthereumExplorer === Constants.browserEthereumExplorerEthplorer
onCheckedChanged: {
if (checked) {
appSettings.browserEthereumExplorer = Constants.browserEthereumExplorerEthplorer
}
}
}
StatusRadioButton {
text: "blockchair.com"
ButtonGroup.group: searchEnginGroup
checked: appSettings.browserEthereumExplorer === Constants.browserEthereumExplorerBlockchair
onCheckedChanged: {
if (checked) {
appSettings.browserEthereumExplorer = Constants.browserEthereumExplorerBlockchair
}
}
}
}
}