blob: 78aa6466d768fdc85f549fcf38ad65af36336bd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef SINGLETON_H
#define SINGLETON_H
#include <QtCore/qobject.h>
#include <QtGui/qfont.h>
#include <qqml.h>
class TestApplication : public QObject
{
Q_OBJECT
QML_SINGLETON
public:
TestApplication(QObject *parent = nullptr) : QObject(parent) { }
Q_INVOKABLE QFont createDummyFont() const;
};
#endif // SINGLETON_H
|