mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
Merge branch '3.0'
Conflict in ClusterControlItem.qml where there was a new element in Master that wasn't present in 3.0. That element wasn't referenced anywhere else so I just removed it.
This commit is contained in:
commit
1d7792861d
20 changed files with 221 additions and 73 deletions
|
@ -14,6 +14,7 @@
|
|||
"platform_texture": "Ultimaker2backplate.png",
|
||||
"platform_offset": [9, 0, 0],
|
||||
"has_materials": false,
|
||||
"has_machine_quality": true,
|
||||
"first_start_actions": ["UM2UpgradeSelection"],
|
||||
"supported_actions":["UM2UpgradeSelection", "UpgradeFirmware"]
|
||||
},
|
||||
|
|
|
@ -386,8 +386,6 @@ UM.MainWindow
|
|||
visible: opacity > 0
|
||||
opacity: base.showPrintMonitor ? 1 : 0
|
||||
|
||||
Behavior on opacity { NumberAnimation { duration: 100; } }
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.AllButtons
|
||||
|
@ -818,7 +816,7 @@ UM.MainWindow
|
|||
|
||||
Connections
|
||||
{
|
||||
target: Printer
|
||||
target: CuraApplication
|
||||
onShowDiscardOrKeepProfileChanges:
|
||||
{
|
||||
discardOrKeepProfileChangesDialog.show()
|
||||
|
|
|
@ -76,7 +76,7 @@ Item
|
|||
|
||||
property var totalTicks: 0
|
||||
property var availableTotalTicks: 0
|
||||
property var activeQualityId: 0
|
||||
property var activeQualityIndex: 0
|
||||
|
||||
property var qualitySliderStepWidth: 0
|
||||
property var qualitySliderAvailableMin : 0
|
||||
|
@ -97,7 +97,7 @@ Item
|
|||
|
||||
// Set selected value
|
||||
if (Cura.MachineManager.activeQualityId == qualityItem.id) {
|
||||
qualityModel.activeQualityId = i
|
||||
qualityModel.activeQualityIndex = i
|
||||
}
|
||||
|
||||
// Set min available
|
||||
|
@ -144,9 +144,13 @@ Item
|
|||
|
||||
// check, the ticks count cannot be less than zero
|
||||
if(Cura.ProfilesModel.rowCount() != 0)
|
||||
{
|
||||
qualityModel.totalTicks = Cura.ProfilesModel.rowCount() - 1 // minus one, because slider starts from 0
|
||||
}
|
||||
else
|
||||
{
|
||||
qualityModel.totalTicks = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -264,7 +268,7 @@ Item
|
|||
maximumValue: qualityModel.qualitySliderAvailableMax >= 0 ? qualityModel.qualitySliderAvailableMax : 0
|
||||
stepSize: 1
|
||||
|
||||
value: qualityModel.activeQualityId
|
||||
value: qualityModel.activeQualityIndex
|
||||
|
||||
width: qualityModel.qualitySliderStepWidth * qualityModel.availableTotalTicks
|
||||
|
||||
|
@ -292,10 +296,11 @@ Item
|
|||
}
|
||||
|
||||
onValueChanged: {
|
||||
if(Cura.MachineManager.activeMachine != null)
|
||||
// Only change if an active machine is set and the slider is visible at all.
|
||||
if(Cura.MachineManager.activeMachine != null && visible)
|
||||
{
|
||||
//Prevent updating during view initializing. Trigger only if the value changed by user
|
||||
if(qualitySlider.value != qualityModel.activeQualityId)
|
||||
if(qualitySlider.value != qualityModel.activeQualityIndex)
|
||||
{
|
||||
//start updating with short delay
|
||||
qualitySliderChangeTimer.start();
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
"secondary": [241, 242, 242, 255],
|
||||
|
||||
"topbar_background_color": [0, 0, 0, 0],
|
||||
"topbar_background_color_monitoring": [39, 44, 48, 255],
|
||||
"topbar_background_color_monitoring": [0, 0, 0, 0],
|
||||
|
||||
"topbar_button_text_active": [255, 255, 255, 255],
|
||||
"topbar_button_text_inactive": [128, 128, 128, 255],
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
"secondary": [245, 245, 245, 255],
|
||||
|
||||
"topbar_background_color": [255, 255, 255, 0],
|
||||
"topbar_background_color_monitoring": [255, 255, 255, 255],
|
||||
"topbar_background_color_monitoring": [255, 255, 255, 0],
|
||||
|
||||
"topbar_button_text_active": [0, 0, 0, 255],
|
||||
"topbar_button_text_inactive": [128, 128, 128, 255],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue