blob: 57bf542e34357a120a3da851a0eb5d2bbd97db08 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0
#include "applicationsource.h"
#include <app/app_version.h>
#include <coreplugin/coreconstants.h>
#include "common/scopedsettingsgroupsetter.h"
#include "common/utils.h"
#include <QtCore/QSettings>
namespace UsageStatistic {
namespace Internal {
using namespace KUserFeedback;
ApplicationSource::ApplicationSource()
: AbstractDataSource("applicationData", Provider::BasicSystemInformation)
{}
QString ApplicationSource::name() const
{
return tr("Application data");
}
QString ApplicationSource::description() const
{
return tr("The name and version of the application.");
}
QVariant ApplicationSource::data()
{
return QVariantMap{
{"applicationName", Core::Constants::IDE_DISPLAY_NAME},
{"applicationVersion", Core::Constants::IDE_VERSION_LONG},
};
}
void ApplicationSource::loadImpl(QSettings *settings)
{
auto setter = ScopedSettingsGroupSetter::forDataSource(*this, *settings);
}
void ApplicationSource::storeImpl(QSettings *settings)
{
auto setter = ScopedSettingsGroupSetter::forDataSource(*this, *settings);
}
} // namespace Internal
} // namespace UsageStatistic
|