File indexing completed on 2024-12-15 03:45:04
0001 /* 0002 SPDX-FileCopyrightText: 2017 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 #include "qpainfosource.h" 0008 0009 #include <QGuiApplication> 0010 #include <QVariant> 0011 0012 using namespace KUserFeedback; 0013 0014 QPAInfoSource::QPAInfoSource() : 0015 AbstractDataSource(QStringLiteral("qpa"), Provider::BasicSystemInformation) 0016 { 0017 } 0018 0019 QString QPAInfoSource::description() const 0020 { 0021 return tr("The Qt platform abstraction plugin."); 0022 } 0023 0024 QVariant QPAInfoSource::data() 0025 { 0026 QVariantMap m; 0027 m.insert(QStringLiteral("name"), QGuiApplication::platformName()); 0028 return m; 0029 } 0030 0031 QString QPAInfoSource::name() const 0032 { 0033 return tr("QPA information"); 0034 }