KUserFeedback

qtversionsource.cpp
1/*
2 SPDX-FileCopyrightText: 2016 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#include "qtversionsource.h"
8
9#include <QLibraryInfo> /* for qVersion() in Qt >= 6.5 */
10#include <QVariant>
11
12using namespace KUserFeedback;
13
14QtVersionSource::QtVersionSource() :
15 AbstractDataSource(QStringLiteral("qtVersion"), Provider::BasicSystemInformation)
16{
17}
18
20{
21 return tr("The Qt version used by this application.");
22}
23
25{
26 QVariantMap m;
27 m.insert(QStringLiteral("value"), QString::fromLatin1(qVersion()));
28 return m;
29}
30
32{
33 return tr("Qt version information");
34}
Base class for data sources for telemetry data.
The central object managing data sources and transmitting feedback to the server.
Definition provider.h:32
QString description() const override
Returns a human-readable, translated description of what this source provides.
QString name() const override
Returns a short name of this data source.
QVariant data() override
Returns the data gathered by this source.
Classes for integrating telemetry collection, survey targeting, and contribution encouragenemt and co...
QString fromLatin1(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:56 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.