/*************************************************************/ /* */ /* Copyright (C) Microsoft Corporation. All rights reserved. */ /* */ /*************************************************************/ import Colors 1.0 import Fonts 1.0 import QtQuick 2.7 import QtQuick.Controls 2.2 import QtQuick.Controls.Styles 1.4 Rectangle { id: root anchors.fill: parent color: "transparent" onVisibleChanged: { if (visible) openSystemPreferencesButton.forceActiveFocus(); } property string fullImageLocation: "file:///" + imageLocation WizardPageHeader { id: header anchors { top: parent.top left: parent.left right: parent.right } title.text: _("KFMCheckFullDiskAccessTitle") subtitle.text: _("KFMCheckFullDiskAccessSecondaryText") image.source: "file:///" + imageLocation + "MB_ConsentDialog_Denied.svg" image.sourceSize.width: 470 image.sourceSize.height: 252 image.anchors.topMargin: 18 property bool wasAnnounced : false function announceOnce() { if (!header.wasAnnounced) { header.wasAnnounced = true; wizardWindow.announceTextChange(header.title, _("MoveWindowTitleDone"), Accessible.AnnouncementProcessing_ImportantAll); } } onVisibleChanged: { if (visible) { header.announceOnce(); } } } FabricButton { id: openSystemPreferencesButton visible: true focus: true onClicked: pageModel.onOpenSystemPreferencesClicked(); buttonText: _("KFMCheckFullDiskAccessGoToSystemPreferencesButtonText") anchors { bottom: parent.bottom bottomMargin: 30 right: parent.right rightMargin: 35 } Accessible.onPressAction: onClicked() Keys.onEnterPressed: onClicked() Keys.onReturnPressed: onClicked() Keys.onSpacePressed: onClicked() } }