Changeset View
Changeset View
Standalone View
Standalone View
Modules/about-distro/src/Module.cpp
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Line(s) | 144 | { | |||
---|---|---|---|---|---|
161 | const QString distroNameVersion = QStringLiteral("%1 %2").arg(distroName, versionId); | 161 | const QString distroNameVersion = QStringLiteral("%1 %2").arg(distroName, versionId); | ||
162 | ui->nameVersionLabel->setText(distroNameVersion); | 162 | ui->nameVersionLabel->setText(distroNameVersion); | ||
163 | 163 | | |||
164 | const auto dummyDistroDescriptionLabel = new QLabel(i18nc("@title:row", "Operating System:"), this); | 164 | const auto dummyDistroDescriptionLabel = new QLabel(i18nc("@title:row", "Operating System:"), this); | ||
165 | dummyDistroDescriptionLabel->hide(); | 165 | dummyDistroDescriptionLabel->hide(); | ||
166 | labelsForClipboard << qMakePair(dummyDistroDescriptionLabel, ui->nameVersionLabel); | 166 | labelsForClipboard << qMakePair(dummyDistroDescriptionLabel, ui->nameVersionLabel); | ||
167 | englishTextForClipboard += QStringLiteral("Operating System: %1\n").arg(distroNameVersion); | 167 | englishTextForClipboard += QStringLiteral("Operating System: %1\n").arg(distroNameVersion); | ||
168 | 168 | | |||
169 | const QString variant = cg.readEntry("Variant", QString()); | 169 | const QString variant = cg.readEntry("Variant", os.variant); | ||
170 | if (variant.isEmpty()) { | 170 | if (variant.isEmpty()) { | ||
171 | ui->variantLabel->hide(); | 171 | ui->variantLabel->hide(); | ||
172 | } else { | 172 | } else { | ||
173 | ui->variantLabel->setText(variant); | 173 | ui->variantLabel->setText(variant); | ||
174 | } | 174 | } | ||
175 | 175 | | |||
176 | const QString url = cg.readEntry("Website", os.homeUrl); | 176 | const QString url = cg.readEntry("Website", os.homeUrl); | ||
177 | if (url.isEmpty()) { | 177 | if (url.isEmpty()) { | ||
▲ Show 20 Lines • Show All 131 Lines • Show Last 20 Lines |