Warning, /network/angelfish/lib/contents/ui/AuthSheet.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2020 Jonah BrĂ¼chert <jbb@kaidan.im> 0002 // SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org> 0003 // 0004 // SPDX-License-Identifier: GPL-2.0-or-later 0005 0006 import QtQuick 2.0 0007 import QtQuick.Layouts 1.1 0008 import QtQuick.Controls 2.2 as Controls 0009 import org.kde.kirigami 2.20 as Kirigami 0010 0011 import QtWebEngine 1.4 0012 0013 Kirigami.PromptDialog { 0014 id: root 0015 property AuthenticationDialogRequest request 0016 0017 title: i18n("Authentication required") 0018 0019 standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel 0020 0021 onAccepted: root.request.dialogAccept(usernameField.text, passwordField.text) 0022 onRejected: root.request.dialogReject() 0023 0024 Kirigami.FormLayout { 0025 Layout.fillWidth: true 0026 0027 Controls.TextField { 0028 id: usernameField 0029 0030 Kirigami.FormData.label: i18n("Username") 0031 Layout.fillWidth: true 0032 } 0033 Controls.TextField { 0034 id: passwordField 0035 echoMode: TextInput.Password 0036 0037 Kirigami.FormData.label: i18n("Password") 0038 Layout.fillWidth: true 0039 } 0040 } 0041 }