File indexing completed on 2024-07-14 03:55:16

0001 /*
0002  * This file is part of KQuickCharts
0003  * SPDX-FileCopyrightText: 2019 Arjen Hiemstra <ahiemstra@heimr.nl>
0004  *
0005  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006  */
0007 
0008 #ifndef CHARTSCONTROLSPLUGIN_H
0009 #define CHARTSCONTROLSPLUGIN_H
0010 
0011 #include <QQmlExtensionPlugin>
0012 
0013 class ChartsControlsPlugin : public QQmlExtensionPlugin
0014 {
0015     Q_OBJECT
0016     Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
0017 
0018 public:
0019     explicit ChartsControlsPlugin(QObject *parent = nullptr);
0020     void registerTypes(const char *uri) override;
0021 
0022 private:
0023     QUrl componentUrl(const QString &fileName);
0024     QString m_styleName;
0025 };
0026 
0027 #endif // CHARTSCONTROLSPLUGIN_H