mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Code style & switch to translation catalog
This commit is contained in:
parent
f17cc811c4
commit
d195c859a2
16 changed files with 496 additions and 317 deletions
|
|
@ -5,17 +5,21 @@ import QtQuick 2.2
|
|||
import QtQuick.Controls 1.1
|
||||
import QtQuick.Window 2.1
|
||||
|
||||
import UM 1.0 as UM
|
||||
import UM 1.1 as UM
|
||||
|
||||
UM.Dialog {
|
||||
UM.Dialog
|
||||
{
|
||||
id: base
|
||||
|
||||
//: About dialog title
|
||||
title: qsTr("About Cura")
|
||||
title: catalog.i18nc("@title:window","About Cura")
|
||||
minimumWidth: 400
|
||||
minimumHeight: 300
|
||||
minimumHeight: 300;
|
||||
//UM.I18nCatalog { id: catalog; }
|
||||
|
||||
Image {
|
||||
|
||||
Image
|
||||
{
|
||||
id: logo
|
||||
width: parent.width * 0.75
|
||||
height: width * (1/4.25)
|
||||
|
|
@ -26,9 +30,11 @@ UM.Dialog {
|
|||
sourceSize.height: height
|
||||
anchors.centerIn: parent
|
||||
anchors.verticalCenterOffset : -(height * 0.5)
|
||||
UM.I18nCatalog{id: catalog; name:"cura"}
|
||||
}
|
||||
|
||||
Label {
|
||||
Label
|
||||
{
|
||||
id: version
|
||||
|
||||
text: "Cura %1".arg(UM.Application.version)
|
||||
|
|
@ -39,30 +45,33 @@ UM.Dialog {
|
|||
anchors.topMargin : 5
|
||||
}
|
||||
|
||||
Label {
|
||||
Label
|
||||
{
|
||||
id: description
|
||||
width: parent.width
|
||||
|
||||
//: About dialog application description
|
||||
text: qsTr("End-to-end solution for fused filament 3D printing.")
|
||||
text: catalog.i18nc("@label","End-to-end solution for fused filament 3D printing.")
|
||||
wrapMode: Text.WordWrap
|
||||
anchors.top: version.bottom
|
||||
anchors.topMargin : 10
|
||||
}
|
||||
|
||||
Label {
|
||||
Label
|
||||
{
|
||||
id: author_note
|
||||
width: parent.width
|
||||
|
||||
//: About dialog application author note
|
||||
text: qsTr("Cura has been developed by Ultimaker B.V. in cooperation with the community.")
|
||||
text: catalog.i18nc("@label","Cura has been developed by Ultimaker B.V. in cooperation with the community.")
|
||||
wrapMode: Text.WordWrap
|
||||
anchors.top: description.bottom
|
||||
}
|
||||
|
||||
rightButtons: Button {
|
||||
rightButtons: Button
|
||||
{
|
||||
//: Close about dialog button
|
||||
text: qsTr("Close");
|
||||
text: catalog.i18nc("@action:button","Close");
|
||||
|
||||
onClicked: base.visible = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue