Fix code style

CURA-5044
This commit is contained in:
Lipu Fei 2018-03-14 13:10:56 +01:00
parent 53626d3c67
commit fcd50b0cf2

View File

@ -244,15 +244,17 @@ Item
anchors.topMargin: UM.Theme.getSize("sidebar_margin").height anchors.topMargin: UM.Theme.getSize("sidebar_margin").height
// This Item is used only for tooltip, for slider area which is unavailable // This Item is used only for tooltip, for slider area which is unavailable
Item{ Item
{
function showTooltip (showTooltip) { function showTooltip (showTooltip)
if(showTooltip){ {
var content = catalog.i18nc("@tooltip","This quality profile is not available for you current material and nozzle configuration. Please change these to enable this quality profile") if (showTooltip) {
var content = catalog.i18nc("@tooltip", "This quality profile is not available for you current material and nozzle configuration. Please change these to enable this quality profile")
base.showTooltip(qualityRow, Qt.point(-UM.Theme.getSize("sidebar_margin").width, customisedSettings.height), content) base.showTooltip(qualityRow, Qt.point(-UM.Theme.getSize("sidebar_margin").width, customisedSettings.height), content)
} }
else else {
base.hideTooltip(); base.hideTooltip()
}
} }
id: unavailableLineToolTip id: unavailableLineToolTip
@ -261,7 +263,8 @@ Item
x: 0 x: 0
anchors.verticalCenter: qualitySlider.verticalCenter anchors.verticalCenter: qualitySlider.verticalCenter
Rectangle{ Rectangle
{
id: leftArea id: leftArea
width: { width: {
if(qualityModel.availableTotalTicks == 0) if(qualityModel.availableTotalTicks == 0)
@ -272,7 +275,8 @@ Item
height: parent.height height: parent.height
color: "transparent" color: "transparent"
MouseArea { MouseArea
{
anchors.fill: parent anchors.fill: parent
hoverEnabled: true hoverEnabled: true
enabled: Cura.SimpleModeSettingsManager.isProfileUserCreated == false enabled: Cura.SimpleModeSettingsManager.isProfileUserCreated == false
@ -281,7 +285,8 @@ Item
} }
} }
Rectangle{ Rectangle
{
id: rightArea id: rightArea
width: { width: {
if(qualityModel.availableTotalTicks == 0) if(qualityModel.availableTotalTicks == 0)
@ -292,7 +297,7 @@ Item
height: parent.height height: parent.height
color: "transparent" color: "transparent"
x: { x: {
if(qualityModel.availableTotalTicks == 0){ if (qualityModel.availableTotalTicks == 0) {
return 0 return 0
} }