File indexing completed on 2024-05-12 16:57:58

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