WimaSettings.cc 415 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
#include "WimaSettings.h"
#include <QQmlEngine>
#include <QtQml>

DECLARE_SETTINGGROUP(Wima, "Wima")
{
    QQmlEngine::setObjectOwnership(this, QQmlEngine::CppOwnership); \
    qmlRegisterUncreatableType<WimaSettings>("QGroundControl.SettingsManager", 1, 0, "WimaSettings", "Reference only"); \
}

DECLARE_SETTINGSFACT(WimaSettings, lowBatteryThreshold)
DECLARE_SETTINGSFACT(WimaSettings, enableLowBatteryHandling)