blob: a78b85e1d990aab79cc8c9462b5a57ebf566683a (
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
#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
|