mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Update print action hotkey listener to QtControls 2
CURA-8684
This commit is contained in:
parent
8cc1604b2f
commit
582e4fcbd0
1 changed files with 9 additions and 6 deletions
|
|
@ -1,10 +1,9 @@
|
||||||
// Copyright (c) 2018 Ultimaker B.V.
|
// Copyright (c) 2022 Ultimaker B.V.
|
||||||
// Cura is released under the terms of the LGPLv3 or higher.
|
// Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import QtQuick 2.7
|
import QtQuick 2.7
|
||||||
import QtQuick.Controls 2.1
|
import QtQuick.Controls 2.4
|
||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts 1.3
|
||||||
import QtQuick.Controls 1.4 as Controls1
|
|
||||||
|
|
||||||
import UM 1.4 as UM
|
import UM 1.4 as UM
|
||||||
import Cura 1.0 as Cura
|
import Cura 1.0 as Cura
|
||||||
|
|
@ -122,7 +121,9 @@ Column
|
||||||
tooltip: catalog.i18nc("@label", "Start the slicing process")
|
tooltip: catalog.i18nc("@label", "Start the slicing process")
|
||||||
enabled: widget.backendState != UM.Backend.Error && !widget.waitingForSliceToStart
|
enabled: widget.backendState != UM.Backend.Error && !widget.waitingForSliceToStart
|
||||||
visible: widget.backendState == UM.Backend.NotStarted || widget.backendState == UM.Backend.Error
|
visible: widget.backendState == UM.Backend.NotStarted || widget.backendState == UM.Backend.Error
|
||||||
onClicked: sliceOrStopSlicing()
|
onClicked: {
|
||||||
|
sliceOrStopSlicing()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
|
|
@ -136,7 +137,9 @@ Column
|
||||||
text: catalog.i18nc("@button", "Cancel")
|
text: catalog.i18nc("@button", "Cancel")
|
||||||
enabled: sliceButton.enabled
|
enabled: sliceButton.enabled
|
||||||
visible: !sliceButton.visible
|
visible: !sliceButton.visible
|
||||||
onClicked: sliceOrStopSlicing()
|
onClicked: {
|
||||||
|
sliceOrStopSlicing()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -165,7 +168,7 @@ Column
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shortcut for "slice/stop"
|
// Shortcut for "slice/stop"
|
||||||
Controls1.Action
|
Action
|
||||||
{
|
{
|
||||||
shortcut: "Ctrl+P"
|
shortcut: "Ctrl+P"
|
||||||
onTriggered:
|
onTriggered:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue