blob: d3f3d1b11383f2cbeee8f17db9bb51491fde55df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#pragma once
#include <QApplication>
#include <QFileSystemWatcher>
#include <QQmlApplicationEngine>
#include "coreservices.h"
#include "preferences/dialog/dlgpreferences.h"
namespace mixxx {
namespace qml {
class QmlApplication : public QObject {
Q_OBJECT
public:
QmlApplication(
QApplication* app,
std::shared_ptr<CoreServices> pCoreServices);
~QmlApplication() override = default;
public slots:
void loadQml(const QString& path);
private:
std::shared_ptr<CoreServices> m_pCoreServices;
QString m_mainFilePath;
std::unique_ptr<QQmlApplicationEngine> m_pAppEngine;
QFileSystemWatcher m_fileWatcher;
std::shared_ptr<DlgPreferences> m_pDlgPreferences;
};
} // namespace qml
} // namespace mixxx
|