mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 10:18:59 +08:00
Fix code style
CURA-5044
This commit is contained in:
parent
53626d3c67
commit
fcd50b0cf2
@ -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) {
|
||||||
base.showTooltip(qualityRow, Qt.point(-UM.Theme.getSize("sidebar_margin").width, customisedSettings.height), content)
|
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)
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
base.hideTooltip()
|
||||||
}
|
}
|
||||||
else
|
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user