Changeset View
Changeset View
Standalone View
Standalone View
Modules/about-distro/src/BitEntry.cpp
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | SPDX-FileCopyrightText: 2012-2020 Harald Sitter <sitter@kde.org> | ||||
3 | SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL | ||||
4 | */ | ||||
5 | | ||||
6 | #include "BitEntry.h" | ||||
7 | | ||||
8 | | ||||
9 | BitEntry::BitEntry() | ||||
10 | : Entry(ki18n("OS Type:"), bitString()) | ||||
11 | { | ||||
12 | } | ||||
13 | | ||||
14 | QString BitEntry::bitString() | ||||
15 | { | ||||
16 | const int bits = QT_POINTER_SIZE == 8 ? 64 : 32; | ||||
17 | return i18nc("@label %1 is the CPU bit width (e.g. 32 or 64)", | ||||
18 | "%1-bit", QString::number(bits)); | ||||
19 | } |