mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Removed unused timer
CURA-6598
This commit is contained in:
parent
5401a4db15
commit
a9e09c6f54
1 changed files with 2 additions and 20 deletions
|
@ -9,10 +9,6 @@ import QtQuick.Controls.Styles 1.4
|
||||||
import UM 1.2 as UM
|
import UM 1.2 as UM
|
||||||
import Cura 1.6 as Cura
|
import Cura 1.6 as Cura
|
||||||
|
|
||||||
|
|
||||||
//
|
|
||||||
// Quality profile
|
|
||||||
//
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
id: qualityRow
|
id: qualityRow
|
||||||
|
@ -21,20 +17,6 @@ Item
|
||||||
property real labelColumnWidth: Math.round(width / 3)
|
property real labelColumnWidth: Math.round(width / 3)
|
||||||
property real settingsColumnWidth: width - labelColumnWidth
|
property real settingsColumnWidth: width - labelColumnWidth
|
||||||
|
|
||||||
Timer
|
|
||||||
{
|
|
||||||
id: qualitySliderChangeTimer
|
|
||||||
interval: 50
|
|
||||||
running: false
|
|
||||||
repeat: false
|
|
||||||
onTriggered:
|
|
||||||
{
|
|
||||||
var item = Cura.QualityProfilesDropDownMenuModel.getItem(qualitySlider.value);
|
|
||||||
Cura.MachineManager.activeQualityGroup = item.quality_group;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Here are the elements that are shown in the left column
|
// Here are the elements that are shown in the left column
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
|
@ -46,7 +28,7 @@ Item
|
||||||
{
|
{
|
||||||
id: qualityRowTitle
|
id: qualityRowTitle
|
||||||
source: UM.Theme.getIcon("category_layer_height")
|
source: UM.Theme.getIcon("category_layer_height")
|
||||||
text: catalog.i18nc("@label", "Layer Height")
|
text: catalog.i18nc("@label", "Profiles")
|
||||||
font: UM.Theme.getFont("medium")
|
font: UM.Theme.getFont("medium")
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: customisedSettings.left
|
anchors.right: customisedSettings.left
|
||||||
|
@ -72,7 +54,7 @@ Item
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
// if the current profile is user-created, switch to a built-in quality
|
// If the current profile is user-created, switch to a built-in quality
|
||||||
Cura.MachineManager.resetToUseDefaultQuality()
|
Cura.MachineManager.resetToUseDefaultQuality()
|
||||||
}
|
}
|
||||||
onEntered:
|
onEntered:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue