// SPDX-FileCopyrightText: 2020 Jonah BrĂ¼chert // SPDX-FileCopyrightText: 2022 Devin Lin // // SPDX-License-Identifier: GPL-2.0-or-later import QtQuick 2.0 import QtQuick.Layouts 1.1 import QtQuick.Controls 2.2 as Controls import org.kde.kirigami 2.20 as Kirigami import QtWebEngine 1.4 Kirigami.PromptDialog { id: root property AuthenticationDialogRequest request title: i18n("Authentication required") standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel onAccepted: root.request.dialogAccept(usernameField.text, passwordField.text) onRejected: root.request.dialogReject() Kirigami.FormLayout { Layout.fillWidth: true Controls.TextField { id: usernameField Kirigami.FormData.label: i18n("Username") Layout.fillWidth: true } Controls.TextField { id: passwordField echoMode: TextInput.Password Kirigami.FormData.label: i18n("Password") Layout.fillWidth: true } } }