Warning, /plasma/plasma-mobile/kcms/info/ui/main.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2019 Jonah BrĂ¼chert <jbb@kaidan.im> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 import QtQuick.Layouts 1.2 0008 import QtQuick 2.7 0009 import QtQuick.Controls 2.2 as Controls 0010 0011 import org.kde.kcmutils as KCM 0012 import org.kde.kirigami 2.10 as Kirigami 0013 import org.kde.kirigamiaddons.formcard 1 as FormCard 0014 0015 KCM.SimpleKCM { 0016 title: i18n("System Information") 0017 0018 leftPadding: 0 0019 rightPadding: 0 0020 topPadding: 0 0021 bottomPadding: Kirigami.Units.gridUnit 0022 0023 actions: [ 0024 Kirigami.Action { 0025 icon.name: "edit-copy" 0026 text: i18nc("@action:button", "Copy") 0027 onTriggered: kcm.copyInfoToClipboard() 0028 } 0029 ] 0030 0031 ColumnLayout { 0032 spacing: 0 0033 0034 Kirigami.Icon { 0035 Layout.alignment: Qt.AlignHCenter 0036 Layout.topMargin: Kirigami.Units.gridUnit 0037 Layout.bottomMargin: Kirigami.Units.gridUnit 0038 implicitWidth: Kirigami.Units.iconSizes.huge 0039 implicitHeight: width 0040 source: kcm.distroInfo.logo ? kcm.distroInfo.logo : "kde" 0041 } 0042 0043 FormCard.FormCard { 0044 Layout.fillWidth: true 0045 0046 FormCard.FormTextDelegate { 0047 text: i18n("Operating System") 0048 description: kcm.distroInfo.name 0049 } 0050 0051 FormCard.FormDelegateSeparator {} 0052 0053 FormCard.FormButtonDelegate { 0054 text: i18n("Webpage") 0055 description: kcm.distroInfo.homeUrl 0056 onClicked: { 0057 Qt.openUrlExternally(kcm.distroInfo.homeUrl) 0058 } 0059 } 0060 } 0061 0062 FormCard.FormHeader { 0063 title: i18nc("@title:group", "Software") 0064 } 0065 0066 FormCard.FormCard { 0067 FormCard.FormTextDelegate { 0068 text: i18n("KDE Plasma Version") 0069 description: kcm.softwareInfo.plasmaVersion 0070 } 0071 0072 FormCard.FormDelegateSeparator {} 0073 0074 FormCard.FormTextDelegate { 0075 text: i18n("KDE Frameworks Version") 0076 description: kcm.softwareInfo.frameworksVersion 0077 } 0078 0079 FormCard.FormDelegateSeparator {} 0080 0081 FormCard.FormTextDelegate { 0082 text: i18n("Qt Version") 0083 description: kcm.softwareInfo.qtVersion 0084 } 0085 0086 FormCard.FormDelegateSeparator {} 0087 0088 FormCard.FormTextDelegate { 0089 text: i18n("Kernel Version") 0090 description: kcm.softwareInfo.kernelRelease 0091 } 0092 0093 FormCard.FormDelegateSeparator {} 0094 0095 FormCard.FormTextDelegate { 0096 text: i18n("OS Type") 0097 description: i18nc("@label %1 is the CPU bit width (e.g. 32 or 64)", "%1-bit", kcm.softwareInfo.osType) 0098 } 0099 } 0100 0101 FormCard.FormHeader { 0102 title: i18nc("@title:group", "Hardware") 0103 } 0104 0105 FormCard.FormCard { 0106 FormCard.FormTextDelegate { 0107 text: i18np("Processor", "Processors", kcm.hardwareInfo.processorCount); 0108 description: kcm.hardwareInfo.processors 0109 } 0110 0111 FormCard.FormDelegateSeparator {} 0112 0113 FormCard.FormTextDelegate { 0114 text: i18n("Memory") 0115 description: { 0116 if (kcm.hardwareInfo.memory !== "0 B") { 0117 return i18nc("@label %1 is the formatted amount of system memory (e.g. 7,7 GiB)", 0118 "%1 of RAM", kcm.hardwareInfo.memory) 0119 } else { 0120 return i18nc("Unknown amount of RAM", "Unknown") 0121 } 0122 } 0123 } 0124 } 0125 } 0126 }