Warning, /utilities/keysmith/src/contents/ui/ErrorPage.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-License-Identifier: GPL-3.0-or-later 0003 * SPDX-FileCopyrightText: 2020-2021 Johan Ouwerkerk <jm.ouwerkerk@gmail.com> 0004 */ 0005 0006 import QtQuick 2.1 0007 import QtQuick.Layouts 1.2 0008 import QtQuick.Controls 2.0 as Controls 0009 import org.kde.kirigami 2.8 as Kirigami 0010 0011 import Keysmith.Application 1.0 as Application 0012 0013 Kirigami.Page { 0014 id: root 0015 0016 property Application.ErrorViewModel vm 0017 0018 title: vm.errorTitle 0019 0020 ColumnLayout { 0021 anchors { 0022 horizontalCenter: parent.horizontalCenter 0023 } 0024 Controls.Label { 0025 text: vm.errorText 0026 color: Kirigami.Theme.negativeTextColor 0027 Layout.maximumWidth: root.width - 2 * Kirigami.Units.largeSpacing 0028 wrapMode: Text.WordWrap 0029 } 0030 } 0031 0032 actions.main: Kirigami.Action { 0033 text: i18nc("@action:button Button to dismiss the error page", "Continue") 0034 iconName: "answer-correct" 0035 onTriggered: { 0036 vm.dismissed(); 0037 } 0038 } 0039 actions.right: Kirigami.Action { 0040 text: i18nc("@action:button Dismiss the error page and quit Keysmtih", "Quit") 0041 iconName: "application-exit" 0042 enabled: vm.quitEnabled 0043 visible: vm.quitEnabled 0044 onTriggered: { 0045 Qt.quit(); 0046 } 0047 } 0048 }