Fix coding style

CURA-4147
This commit is contained in:
Lipu Fei 2017-08-18 13:38:12 +02:00
parent bab61b7f47
commit 662e3b9cd1
2 changed files with 20 additions and 14 deletions

View File

@ -252,7 +252,7 @@ Rectangle
tooltip: Cura.MachineManager.activeQualityName
style: UM.Theme.styles.sidebar_header_button
activeFocusOnPress: true;
property var valueWarning: ! Cura.MachineManager.isActiveQualitySupported
property var valueWarning: !Cura.MachineManager.isActiveQualitySupported
menu: ProfileMenu { }
UM.SimpleButton
@ -278,7 +278,7 @@ Rectangle
onEntered:
{
var content = catalog.i18nc("@tooltip","Some setting/override values are different from the values stored in the profile.\n\nClick to open the profile manager.")
base.showTooltip(globalProfileRow, Qt.point(- UM.Theme.getSize("default_margin").width, 0), content)
base.showTooltip(globalProfileRow, Qt.point(-UM.Theme.getSize("default_margin").width, 0), content)
}
onExited: base.hideTooltip()
}

View File

@ -160,7 +160,7 @@ Column
visible: !extruderSelectionRow.visible
}
//Print core row
// Print core row
Item
{
id: printCoreRow
@ -199,7 +199,8 @@ Column
menu: NozzleMenu { extruderIndex: base.currentExtruderIndex }
}
}
//Material Row
// Material Row
Item
{
id: materialRow
@ -254,7 +255,8 @@ Column
menu: MaterialMenu { extruderIndex: base.currentExtruderIndex }
}
}
//Material info row
// Material info row
Item
{
id: materialInfoRow
@ -286,11 +288,15 @@ Column
anchors.bottom: parent.bottom
color:
{
if (! Cura.MachineManager.isActiveQualitySupported)
if (!Cura.MachineManager.isActiveQualitySupported)
{
UM.Theme.getColor("setting_validation_error");
}
else
{
UM.Theme.getColor("text");
}
}
MouseArea
{
@ -311,11 +317,11 @@ Column
var content = catalog.i18nc("@tooltip", "Click to check the material compatibility on Ultimaker.com.");
base.showTooltip(
materialInfoRow,
Qt.point(- UM.Theme.getSize("default_margin").width,0),
Qt.point(-UM.Theme.getSize("default_margin").width, 0),
catalog.i18nc("@tooltip", content)
);
}
onExited:base.hideTooltip();
onExited: base.hideTooltip();
}
}
@ -331,7 +337,7 @@ Column
//sourceSize.height: width + 5
color: UM.Theme.getColor("setting_control_text")
visible: ! Cura.MachineManager.isActiveQualitySupported
visible: !Cura.MachineManager.isActiveQualitySupported
}
}
}