Changeset View
Changeset View
Standalone View
Standalone View
Modules/about-distro/src/Module.cpp
Show All 14 Lines | |||||
15 | #include <KConfig> | 15 | #include <KConfig> | ||
16 | #include <KConfigGroup> | 16 | #include <KConfigGroup> | ||
17 | #include <KLocalizedString> | 17 | #include <KLocalizedString> | ||
18 | #include <KOSRelease> | 18 | #include <KOSRelease> | ||
19 | #include <KSharedConfig> | 19 | #include <KSharedConfig> | ||
20 | 20 | | |||
21 | #include "CPUEntry.h" | 21 | #include "CPUEntry.h" | ||
22 | #include "BitEntry.h" | 22 | #include "BitEntry.h" | ||
23 | #include "GPUEntry.h" | ||||
23 | #include "KernelEntry.h" | 24 | #include "KernelEntry.h" | ||
24 | #include "MemoryEntry.h" | 25 | #include "MemoryEntry.h" | ||
25 | #include "PlasmaEntry.h" | 26 | #include "PlasmaEntry.h" | ||
26 | #include "SectionLabel.h" | 27 | #include "SectionLabel.h" | ||
27 | #include "Version.h" | 28 | #include "Version.h" | ||
28 | 29 | | |||
29 | Module::Module(QWidget *parent, const QVariantList &args) : | 30 | Module::Module(QWidget *parent, const QVariantList &args) : | ||
30 | KCModule(parent, args), | 31 | KCModule(parent, args), | ||
▲ Show 20 Lines • Show All 153 Lines • ▼ Show 20 Line(s) | 181 | addEntriesToGrid({ | |||
184 | new KernelEntry(), | 185 | new KernelEntry(), | ||
185 | new BitEntry() | 186 | new BitEntry() | ||
186 | }); | 187 | }); | ||
187 | 188 | | |||
188 | // hardware | 189 | // hardware | ||
189 | addSectionHeader(i18nc("@title:group", "Hardware")); | 190 | addSectionHeader(i18nc("@title:group", "Hardware")); | ||
190 | addEntriesToGrid({ | 191 | addEntriesToGrid({ | ||
191 | new CPUEntry(), | 192 | new CPUEntry(), | ||
192 | new MemoryEntry() | 193 | new MemoryEntry(), | ||
194 | new GPUEntry() | ||||
193 | }); | 195 | }); | ||
194 | } | 196 | } | ||
195 | 197 | | |||
196 | void Module::copyToClipboard() | 198 | void Module::copyToClipboard() | ||
197 | { | 199 | { | ||
198 | QString text; | 200 | QString text; | ||
199 | for (auto entry : m_entries) { | 201 | for (auto entry : m_entries) { | ||
200 | text += entry->diagnosticLine(Entry::Language::System); | 202 | text += entry->diagnosticLine(Entry::Language::System); | ||
Show All 12 Lines |