diff options
Diffstat (limited to 'tests/auto/quick/doc/how-tos/how-to-cpp-button/backend.h')
-rw-r--r-- | tests/auto/quick/doc/how-tos/how-to-cpp-button/backend.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/quick/doc/how-tos/how-to-cpp-button/backend.h b/tests/auto/quick/doc/how-tos/how-to-cpp-button/backend.h new file mode 100644 index 0000000000..10249f5416 --- /dev/null +++ b/tests/auto/quick/doc/how-tos/how-to-cpp-button/backend.h @@ -0,0 +1,17 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +//! [file] +#include <QObject> +#include <QQmlEngine> + +class Backend : public QObject +{ + Q_OBJECT + QML_ELEMENT + QML_SINGLETON + +public: + Q_INVOKABLE void doStuff(); +}; +//! [file] |