KUserFeedback
selectionratiosource.cpp
76SelectionRatioSource::SelectionRatioSource(QItemSelectionModel* selectionModel, const QString& sampleName)
77 : AbstractDataSource(sampleName, Provider::DetailedUsageStatistics, new SelectionRatioSourcePrivate)
84 d->monitorConnection = QObject::connect(selectionModel, &QItemSelectionModel::selectionChanged, [this]() {
Base class for data sources for telemetry data.
Definition abstractdatasource.h:25
The central object managing data sources and transmitting feedback to the server.
Definition provider.h:32
Records the time ratio a given entry is selected via a QItemSelectionModel.
Definition selectionratiosource.h:30
SelectionRatioSource(QItemSelectionModel *selectionModel, const QString &sampleName)
Create a new selection ratio data source.
Definition selectionratiosource.cpp:76
void setRole(int role)
Determine which role to consider for the reported value.
Definition selectionratiosource.cpp:92
QString description() const override
Returns a human-readable, translated description of what this source provides.
Definition selectionratiosource.cpp:98
QVariant data() override
Returns the data gathered by this source.
Definition selectionratiosource.cpp:110
void resetImpl(QSettings *settings) override
Invoked by reset() in order to reset individual settings of this data source.
Definition selectionratiosource.cpp:159
void loadImpl(QSettings *settings) override
Invoked by load() in order to load individual settings of this data source.
Definition selectionratiosource.cpp:131
void setDescription(const QString &desc)
Set human-readable and translated description of the data provided by this source.
Definition selectionratiosource.cpp:104
void storeImpl(QSettings *settings) override
Invoked by store() in order to store individual settings of this data source.
Definition selectionratiosource.cpp:142
Classes for integrating telemetry collection, survey targeting, and contribution encouragenemt and co...
Definition surveytargetexpression.h:16
qint64 elapsed() const const
void start()
bool hasSelection() const const
selectedIndexes
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
QStringList childKeys() const const
void remove(QAnyStringView key)
void setValue(QAnyStringView key, const QVariant &value)
QVariant value(QAnyStringView key) const const
bool isEmpty() const const
DisplayRole
int toInt(bool *ok) const const
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.