File indexing completed on 2024-05-12 17:21:22

0001 /*
0002     SPDX-License-Identifier: GPL-3.0-or-later
0003     SPDX-FileCopyrightText: 2022 Felipe Kinoshita <kinofhek@gmail.com>
0004 */
0005 
0006 #pragma once
0007 
0008 #include <QObject>
0009 #include <KAboutData>
0010 
0011 class AboutType : public QObject
0012 {
0013     Q_OBJECT
0014     Q_PROPERTY(KAboutData aboutData READ aboutData CONSTANT)
0015 public:
0016     static AboutType &instance()
0017     {
0018         static AboutType _instance;
0019         return _instance;
0020     }
0021 
0022     [[nodiscard]] KAboutData aboutData() const
0023     {
0024         return KAboutData::applicationData();
0025     }
0026 };