summaryrefslogtreecommitdiffstats
path: root/src/qml/qmlconfigproxy.h
blob: 37c7bc4cc815b2ea2543ba710c29b55acf7c4f84 (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
#pragma once
#include <QColor>
#include <QObject>
#include <QVariantList>

#include "preferences/usersettings.h"

namespace mixxx {
namespace qml {

class QmlConfigProxy : public QObject {
    Q_OBJECT
  public:
    explicit QmlConfigProxy(
            UserSettingsPointer pConfig,
            QObject* parent = nullptr);

    Q_INVOKABLE QVariantList getHotcueColorPalette();
    Q_INVOKABLE QVariantList getTrackColorPalette();

  private:
    const UserSettingsPointer m_pConfig;
};

} // namespace qml
} // namespace mixxx