summaryrefslogtreecommitdiff
path: root/examples/webenginequick/customdialogs/forms/Authentication.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webenginequick/customdialogs/forms/Authentication.qml')
-rw-r--r--examples/webenginequick/customdialogs/forms/Authentication.qml31
1 files changed, 0 insertions, 31 deletions
diff --git a/examples/webenginequick/customdialogs/forms/Authentication.qml b/examples/webenginequick/customdialogs/forms/Authentication.qml
deleted file mode 100644
index 151a7c4aa..000000000
--- a/examples/webenginequick/customdialogs/forms/Authentication.qml
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-import QtQuick
-import QtWebEngine
-
-AuthenticationForm {
- property QtObject request
- signal closeForm()
-
- cancelButton.onClicked: {
- request.dialogReject();
- closeForm();
- }
-
- loginButton.onClicked: {
- request.dialogReject();
- closeForm();
- }
-
- Component.onCompleted: {
- switch (request.type) {
- case AuthenticationDialogRequest.AuthenticationTypeHTTP:
- console.log("HTTP Authentication Required. Host says: " + request.realm);
- break;
- case AuthenticationDialogRequest.AuthenticationTypeProxy:
- console.log("Proxy Authentication Required for: " + request.proxyHost);
- break;
- }
- }
-}