KUserFeedback
feedbackconfigwidget.cpp
58 QMetaObject::invokeMethod(controller->feedbackProvider(), "jsonData", Q_RETURN_ARG(QByteArray, jsonData), Q_ARG(KUserFeedback::Provider::TelemetryMode, controller->telemetryIndexToMode(ui->telemetrySlider->value())));
97 d->ui->noTelemetryLabel->setText(d->controller->telemetryModeDescription(Provider::NoTelemetry));
99 connect(d->ui->telemetrySlider, &QSlider::valueChanged, this, [this]() { d->telemetrySliderChanged(); });
100 connect(d->ui->telemetrySlider, &QSlider::valueChanged, this, &FeedbackConfigWidget::configurationChanged);
101 connect(d->ui->surveySlider, &QSlider::valueChanged, this, [this]() { d->surveySliderChanged(); });
102 connect(d->ui->surveySlider, &QSlider::valueChanged, this, &FeedbackConfigWidget::configurationChanged);
107 connect(d->ui->rawTelemetryButton, &QAbstractButton::toggled, this, [this]() { d->telemetrySliderChanged(); });
146 d->ui->telemetrySlider->setValue(d->controller->telemetryModeToIndex(provider->telemetryMode()));
147 d->ui->surveySlider->setValue(d->controller->surveyIntervalToIndex(provider->surveyInterval()));
160 - (d->ui->telemetryDetails->verticalScrollBar()->isVisible() ? d->ui->telemetryDetails->verticalScrollBar()->width() : 0),
Widget/QtQuick-independent logic and data for the audit log browser UI.
Definition auditloguicontroller.h:27
Logic/behavior of the feedback configuration UI.
Definition feedbackconfiguicontroller.h:27
KUserFeedback::Provider * feedbackProvider
The Provider instance we are configuring.
Definition feedbackconfiguicontroller.h:30
Q_INVOKABLE QString telemetryModeDescription(int telemetryIndex) const
Telemetry mode explanation text.
Definition feedbackconfiguicontroller.cpp:110
Q_INVOKABLE QString surveyModeDescription(int surveyIndex) const
Survey mode explanation text.
Definition feedbackconfiguicontroller.cpp:225
Q_INVOKABLE QString telemetryModeDetails(int telemetryIndex) const
Detailed information about the data sources of the given telemetry mode index.
Definition feedbackconfiguicontroller.cpp:187
Q_INVOKABLE KUserFeedback::Provider::TelemetryMode telemetryIndexToMode(int index) const
Convert slider index to telemetry mode.
Definition feedbackconfiguicontroller.cpp:90
void configurationChanged()
Emitted when any changes are made to the configuration represented in this widget.
Provider * feedbackProvider() const
Returns the feedback provider configured by this widget.
Definition feedbackconfigwidget.cpp:127
FeedbackConfigWidget(QWidget *parent=nullptr)
Create a new feedback provider configuration widget.
Definition feedbackconfigwidget.cpp:90
Provider::TelemetryMode telemetryMode() const
Returns the telemetry level currently selected in the widget.
Definition feedbackconfigwidget.cpp:169
int surveyInterval() const
Returns the survey interval currently selected in this widget.
Definition feedbackconfigwidget.cpp:174
void setFeedbackProvider(Provider *provider)
Set the feedback provider that should be configured with this widget.
Definition feedbackconfigwidget.cpp:132
The central object managing data sources and transmitting feedback to the server.
Definition provider.h:32
Classes for integrating telemetry collection, survey targeting, and contribution encouragenemt and co...
Definition surveytargetexpression.h:16
void toggled(bool checked)
maximum
void valueChanged(int value)
const char * constData() const const
QPalette palette()
void linkActivated(const QString &link)
bool invokeMethod(QObject *context, Functor &&function, FunctorReturnType *ret)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
virtual bool eventFilter(QObject *watched, QEvent *event)
Base
QString fromUtf8(QByteArrayView str)
PM_LayoutRightMargin
SP_DialogHelpButton
red
void setEnabled(bool)
virtual bool event(QEvent *event) override
palette
QStyle * style() const const
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.