| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QPLATFORMTHEMEPLUGIN_H |
| 5 | #define QPLATFORMTHEMEPLUGIN_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is part of the QPA API and is not meant to be used |
| 12 | // in applications. Usage of this API may make your code |
| 13 | // source and binary incompatible with future versions of Qt. |
| 14 | // |
| 15 | |
| 16 | #include <QtGui/qtguiglobal.h> |
| 17 | #include <QtCore/qplugin.h> |
| 18 | #include <QtCore/qfactoryinterface.h> |
| 19 | |
| 20 | QT_BEGIN_NAMESPACE |
| 21 | |
| 22 | class QPlatformTheme; |
| 23 | |
| 24 | #define QPlatformThemeFactoryInterface_iid "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1" |
| 25 | |
| 26 | class Q_GUI_EXPORT QPlatformThemePlugin : public QObject |
| 27 | { |
| 28 | Q_OBJECT |
| 29 | public: |
| 30 | explicit QPlatformThemePlugin(QObject *parent = nullptr); |
| 31 | ~QPlatformThemePlugin(); |
| 32 | |
| 33 | virtual QPlatformTheme *create(const QString &key, const QStringList ¶mList) = 0; |
| 34 | }; |
| 35 | |
| 36 | QT_END_NAMESPACE |
| 37 | |
| 38 | #endif // QPLATFORMTHEMEPLUGIN_H |
| 39 | |