refactor(ChooseBrowserPopup): use StatusQ components

This commit is contained in:
Pascal Precht 2021-10-20 10:26:29 +02:00 committed by Iuri Matias
parent 33bc29961a
commit ce792a1300
1 changed files with 7 additions and 9 deletions

View File

@ -2,22 +2,21 @@ import QtQuick 2.12
import QtQuick.Controls 2.3 import QtQuick.Controls 2.3
import utils 1.0 import utils 1.0
import "../../../../shared"
import "../../../../shared/popups"
import "../../../../shared/status"
// TODO: replace with StatusModal import StatusQ.Controls 0.1
ModalPopup { import StatusQ.Popups 0.1
StatusModal {
property string link property string link
id: popup id: popup
//% "Choose browser" //% "Choose browser"
title: qsTrId("choose-browser") header.title: qsTrId("choose-browser")
width: 440 width: 440
height: 425 height: 425
Column { contentItem: Column {
anchors.fill: parent anchors.fill: parent
spacing: 20 spacing: 20
@ -43,10 +42,9 @@ ModalPopup {
} }
} }
StatusButton { StatusFlatButton {
//% "Open in my default browser" //% "Open in my default browser"
text: qsTrId("open-in-my-default-browser") text: qsTrId("open-in-my-default-browser")
type: "secondary"
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
onClicked: { onClicked: {
appSettings.showBrowserSelector = !rememberChoiceCheckBox.checked appSettings.showBrowserSelector = !rememberChoiceCheckBox.checked