KUserFeedback
7#include "qmlpropertyratiosource.h"
9#include <KUserFeedback/PropertyRatioSource>
13QmlPropertyRatioSource::QmlPropertyRatioSource(
QObject* parent)
18QmlPropertyRatioSource::~QmlPropertyRatioSource()
24 return static_cast<PropertyRatioSource*
>(source());
27QString QmlPropertyRatioSource::sourceId()
const
29 return source()->
id();
32void QmlPropertyRatioSource::setSourceId(
const QString&
id)
34 if (source()->
id() ==
id)
40QString QmlPropertyRatioSource::name()
const
42 return prSrc()->name();
45void QmlPropertyRatioSource::setName(
const QString& name)
47 if (prSrc()->name() == name) {
50 prSrc()->setName(name);
54QString QmlPropertyRatioSource::description()
const
56 return prSrc()->description();
59void QmlPropertyRatioSource::setDescription(
const QString& desc)
61 if (description() == desc)
63 prSrc()->setDescription(desc);
67QObject* QmlPropertyRatioSource::object()
const
69 return prSrc()->object();
72void QmlPropertyRatioSource::setObject(QObject*
object)
74 if (prSrc()->
object() ==
object)
76 prSrc()->setObject(
object);
80QString QmlPropertyRatioSource::propertyName()
const
82 return prSrc()->propertyName();
85void QmlPropertyRatioSource::setPropertyName(
const QString& name)
87 if (propertyName() == name)
89 prSrc()->setPropertyName(name);
93void QmlPropertyRatioSource::addValueMapping(
const QVariant& value,
const QString& name)
95 prSrc()->addValueMapping(value, name);
98#include "moc_qmlpropertyratiosource.cpp"
QString id() const
Returns the ID of this data source.
Records the time ratio a given QObject property has a specific value.
Classes for integrating telemetry collection, survey targeting, and contribution encouragenemt and co...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:44 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.