aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmlnetwork/qqmlsslconfiguration/tst_sslconfiguration_qml.cpp
blob: b0b2fdc19d0e68f1c39d967e6943bf20ab6e1b1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include <QtQuickTest>

#include <QtQml/qqmlcontext.h>
#include <QtQml/qqmlengine.h>

class Setup : public QObject
{
    Q_OBJECT

public slots:
    void qmlEngineAvailable(QQmlEngine *engine)
    {
        bool testDeprecatedSslOptionsProperty = false;
#if QT_REMOVAL_QT7_DEPRECATED_SINCE(6, 11)
        testDeprecatedSslOptionsProperty = true;
#endif
        engine->rootContext()->setContextProperty("testDeprecatedSslOptionsProperty",
                                                  testDeprecatedSslOptionsProperty);
    }
};

QUICK_TEST_MAIN_WITH_SETUP(tst_sslconfiguration_qml, Setup)

#include "tst_sslconfiguration_qml.moc"