Warning, file /education/ktouch/src/application.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  * SPDX-FileCopyrightText: 2012 Sebastian Gottfried <sebastiangottfried@web.de>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef APPLICATION_H
0008 #define APPLICATION_H
0009 
0010 #include <QApplication>
0011 #include <QPointer>
0012 
0013 #include "editor/resourceeditor.h"
0014 
0015 class QQmlEngine;
0016 class DataIndex;
0017 
0018 class Application : public QApplication
0019 {
0020     Q_OBJECT
0021 public:
0022     Application(int& argc, char** argv, int flags = ApplicationFlags);
0023     static DataIndex* dataIndex();
0024     static void setupDeclarativeBindings(QQmlEngine* qmlEngine);
0025     static QPointer<ResourceEditor>& resourceEditorRef();
0026     QStringList& qmlImportPaths();
0027 private:
0028     void registerQmlTypes();
0029     void migrateKde4Files();
0030     DataIndex* m_dataIndex;
0031     QPointer<ResourceEditor> m_resourceEditorRef;
0032     QStringList m_qmlImportPaths;
0033 };
0034 
0035 #endif // APPLICATION_H