5#ifndef DCONFIGWRAPPER_H
6#define DCONFIGWRAPPER_H
8#include <dtkdeclarative_global.h>
9#include <QQmlParserStatus>
10#include <QtQml/qqml.h>
20 Q_INTERFACES(QQmlParserStatus)
21 Q_PROPERTY(QString name READ name WRITE setName)
22 Q_PROPERTY(QString subpath READ subpath WRITE setSubpath)
23#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
31 void setName(
const QString &name);
33 QString subpath()
const;
34 void setSubpath(
const QString &subpath);
37 QVariant
value(
const QString &key,
const QVariant &fallback = QVariant())
const;
39 void resetValue(
const QString &key);
44 void valueChanged(
const QString &key);
47 virtual void classBegin()
override;
48 virtual void componentComplete()
override;
52 DTK_CORE_NAMESPACE::DConfig *impl;
Definition dconfigwrapper_p.h:18
bool isValid() const
Definition dconfigwrapper.cpp:157
QStringList keyList() const
Definition dconfigwrapper.cpp:145
QVariant value(const QString &key, const QVariant &fallback=QVariant()) const
Definition dconfigwrapper.cpp:169
void setValue(const QString &key, const QVariant &value)
Definition dconfigwrapper.cpp:181