Verified Commit ce90c616 authored by Artem Sidyakin's avatar Artem Sidyakin
Browse files

Added platform name

parent e4ac1d77
......@@ -57,6 +57,11 @@ QString Backend::getDotsPerInch()
return QString::number(static_cast<int>(screen->physicalDotsPerInch()));
}
QString Backend::getPlatformName()
{
return QGuiApplication::platformName();
}
QString Backend::getArchitecture()
{
return QSysInfo::currentCpuArchitecture();
......
......@@ -19,6 +19,7 @@ public slots:
static QString getScreenDepth();
static QString getDotsPerInch();
static QString getPlatformName();
static QString getArchitecture();
static QString getKernel();
static QString getMachineHostName();
......
......@@ -9,13 +9,22 @@ GridLayout {
TitilliumText {
Layout.alignment: Qt.AlignRight | Qt.AlignTop
text: "Custom name:"
text: "Name:"
bold: true
}
TitilliumText {
text: backend.getPrettyProductName();
}
TitilliumText {
Layout.alignment: Qt.AlignRight | Qt.AlignTop
text: "Platform:"
bold: true
}
TitilliumText {
text: backend.getPlatformName();
}
TitilliumText {
Layout.alignment: Qt.AlignRight | Qt.AlignTop
text: "Architecture:"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment