mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-12 03:09:01 +08:00
Codestyle fixes
CL-524
This commit is contained in:
parent
21ad2548b7
commit
af0615f985
@ -4,7 +4,6 @@ import QtQuick.Controls.Styles 1.4
|
|||||||
|
|
||||||
import UM 1.3 as UM
|
import UM 1.3 as UM
|
||||||
|
|
||||||
|
|
||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
function strPadLeft(string, pad, length)
|
function strPadLeft(string, pad, length)
|
||||||
@ -164,13 +163,14 @@ Rectangle
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Row // PrintCode config
|
Row // PrintCore config
|
||||||
{
|
{
|
||||||
id: extruderInfo
|
id: extruderInfo
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
|
|
||||||
width: parent.width / 2 - UM.Theme.getSize("default_margin").width
|
width: parent.width / 2 - UM.Theme.getSize("default_margin").width
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
|
|
||||||
spacing: 10 * screenScaleFactor
|
spacing: 10 * screenScaleFactor
|
||||||
|
|
||||||
PrintCoreConfiguration
|
PrintCoreConfiguration
|
||||||
@ -214,31 +214,28 @@ Rectangle
|
|||||||
}
|
}
|
||||||
return !printer.enabled;
|
return !printer.enabled;
|
||||||
}
|
}
|
||||||
visible:
|
|
||||||
{
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
Item // Status and Percent
|
Item // Status and Percent
|
||||||
{
|
{
|
||||||
id: printProgressTitleBar
|
id: printProgressTitleBar
|
||||||
width: parent.width
|
|
||||||
//border.width: UM.Theme.getSize("default_lining").width
|
|
||||||
//border.color: lineColor
|
|
||||||
height: 40 * screenScaleFactor
|
|
||||||
anchors.left: parent.left
|
|
||||||
property var showPercent: {
|
property var showPercent: {
|
||||||
return printJob != null && (["printing", "post_print", "pre_print", "sent_to_printer"].indexOf(printJob.status) !== -1);
|
return printJob != null && (["printing", "post_print", "pre_print", "sent_to_printer"].indexOf(printJob.status) !== -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
width: parent.width
|
||||||
|
//TODO: hardcoded value
|
||||||
|
height: 40 * screenScaleFactor
|
||||||
|
anchors.left: parent.left
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: statusText
|
id: statusText
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
anchors.right: progressText.left
|
anchors.right: progressText.left
|
||||||
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
text: {
|
text: {
|
||||||
if (!printer.enabled)
|
if (!printer.enabled)
|
||||||
{
|
{
|
||||||
@ -283,7 +280,6 @@ Rectangle
|
|||||||
}
|
}
|
||||||
|
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
||||||
font: UM.Theme.getFont("small")
|
font: UM.Theme.getFont("small")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -292,11 +288,11 @@ Rectangle
|
|||||||
id: progressText
|
id: progressText
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
anchors.rightMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
anchors.top: statusText.top
|
anchors.top: statusText.top
|
||||||
|
|
||||||
text: formatPrintJobPercent(printJob)
|
text: formatPrintJobPercent(printJob)
|
||||||
visible: printProgressTitleBar.showPercent
|
visible: printProgressTitleBar.showPercent
|
||||||
|
//TODO: Hardcoded value
|
||||||
opacity: 0.65
|
opacity: 0.65
|
||||||
font: UM.Theme.getFont("very_small")
|
font: UM.Theme.getFont("very_small")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user