mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 05:57:29 +02:00
Add computer description
This commit is contained in:
parent
bd02a5eafd
commit
f6822f17a9
1 changed files with 41 additions and 5 deletions
|
@ -47,8 +47,8 @@ Flickable {
|
||||||
source: "images/logo.png"
|
source: "images/logo.png"
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
Layout.topMargin: 16
|
Layout.topMargin: 16
|
||||||
Layout.preferredWidth: 240
|
Layout.preferredWidth: 200
|
||||||
Layout.preferredHeight: 180
|
Layout.preferredHeight: 150
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
mipmap: true
|
mipmap: true
|
||||||
}
|
}
|
||||||
|
@ -72,11 +72,35 @@ Flickable {
|
||||||
HifiStylesUit.GraphikSemiBold {
|
HifiStylesUit.GraphikSemiBold {
|
||||||
text: "Platform Info"
|
text: "Platform Info"
|
||||||
Layout.maximumWidth: parent.width
|
Layout.maximumWidth: parent.width
|
||||||
Layout.topMargin: 24
|
Layout.topMargin: 8
|
||||||
Layout.bottomMargin: 14
|
Layout.bottomMargin: 8
|
||||||
height: paintedHeight
|
height: paintedHeight
|
||||||
size: 22
|
size: 22
|
||||||
color: simplifiedUI.colors.text.white
|
color: simplifiedUI.colors.text.white
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
}
|
||||||
|
|
||||||
|
HifiStylesUit.GraphikRegular {
|
||||||
|
text: "<b>Computer Vendor/Model:</b>"
|
||||||
|
Layout.maximumWidth: parent.width
|
||||||
|
height: paintedHeight
|
||||||
|
size: 16
|
||||||
|
color: simplifiedUI.colors.text.white
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
var computer = JSON.parse(PlatformInfo.getComputer());
|
||||||
|
var computerVendor = computer.vendor;
|
||||||
|
if (computerVendor.length === 0) {
|
||||||
|
computerVendor = "Unknown";
|
||||||
|
}
|
||||||
|
var computerModel = computer.model;
|
||||||
|
if (computerModel.length === 0) {
|
||||||
|
computerModel = "Unknown";
|
||||||
|
}
|
||||||
|
|
||||||
|
text = "<b>Computer Vendor/Model:</b> " + computerVendor + "/" + computerModel;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
HifiStylesUit.GraphikRegular {
|
HifiStylesUit.GraphikRegular {
|
||||||
|
@ -152,7 +176,7 @@ Flickable {
|
||||||
}
|
}
|
||||||
|
|
||||||
SimplifiedControls.Button {
|
SimplifiedControls.Button {
|
||||||
Layout.topMargin: 24
|
Layout.topMargin: 8
|
||||||
width: 200
|
width: 200
|
||||||
height: 32
|
height: 32
|
||||||
text: "Copy to Clipboard"
|
text: "Copy to Clipboard"
|
||||||
|
@ -168,6 +192,18 @@ Flickable {
|
||||||
var textToCopy = "**About Interface**\n";
|
var textToCopy = "**About Interface**\n";
|
||||||
textToCopy += "Interface Version: " + Window.checkVersion() + "\n";
|
textToCopy += "Interface Version: " + Window.checkVersion() + "\n";
|
||||||
textToCopy += "\n**Platform Info**\n";
|
textToCopy += "\n**Platform Info**\n";
|
||||||
|
|
||||||
|
var computer = JSON.parse(PlatformInfo.getComputer());
|
||||||
|
var computerVendor = computer.vendor;
|
||||||
|
if (computerVendor.length === 0) {
|
||||||
|
computerVendor = "Unknown";
|
||||||
|
}
|
||||||
|
var computerModel = computer.model;
|
||||||
|
if (computerModel.length === 0) {
|
||||||
|
computerModel = "Unknown";
|
||||||
|
}
|
||||||
|
|
||||||
|
textToCopy += "Computer Vendor/Model: " + computerVendor + "/" + computerModel + "\n";
|
||||||
textToCopy += "Profiled Platform Tier: " + PlatformInfo.getTierProfiled() + "\n";
|
textToCopy += "Profiled Platform Tier: " + PlatformInfo.getTierProfiled() + "\n";
|
||||||
textToCopy += "OS Type: " + PlatformInfo.getOperatingSystemType() + "\n";
|
textToCopy += "OS Type: " + PlatformInfo.getOperatingSystemType() + "\n";
|
||||||
textToCopy += "CPU: " + PlatformInfo.getCPUBrand() + "\n";
|
textToCopy += "CPU: " + PlatformInfo.getCPUBrand() + "\n";
|
||||||
|
|
Loading…
Reference in a new issue