mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 05:13:14 +08:00
Renmoved singleton Um.Application
CURA-7812
This commit is contained in:
parent
11aa71a5df
commit
d01b5c1767
@ -1266,7 +1266,7 @@ class CuraApplication(QtApplication):
|
||||
self.processEvents()
|
||||
qmlRegisterType(DiscoveredPrintersModel, "Cura", 1, 0, "DiscoveredPrintersModel")
|
||||
qmlRegisterType(DiscoveredCloudPrintersModel, "Cura", 1, 7, "DiscoveredCloudPrintersModel")
|
||||
qmlRegisterType(QualityProfilesDropDownMenuModel, "Cura", 1, 0, "QualityProfilesDropDownMenuModel")
|
||||
qmlRegisterType(CustomQualityProfilesDropDownMenuModel, "Cura", 1, 0, "CustomQualityProfilesDropDownMenuModel")
|
||||
qmlRegisterType(NozzleModel, "Cura", 1, 0, "NozzleModel")
|
||||
qmlRegisterType(IntentModel, "Cura", 1, 6, "IntentModel")
|
||||
qmlRegisterType(IntentCategoryModel, "Cura", 1, 6, "IntentCategoryModel")
|
||||
|
@ -58,7 +58,7 @@ UM.Dialog
|
||||
UM.Label
|
||||
{
|
||||
id: version
|
||||
text: catalog.i18nc("@label","version: %1").arg(UM.Application.version)
|
||||
text: catalog.i18nc("@label","version: %1").arg(CuraApplication.applicationVersion())
|
||||
font: UM.Theme.getFont("large_bold")
|
||||
color: UM.Theme.getColor("button_text")
|
||||
anchors.right : logo.right
|
||||
|
@ -187,7 +187,7 @@ Popup
|
||||
//Add all the custom profiles.
|
||||
Repeater
|
||||
{
|
||||
model: CuraApplication.getCustomQualityProfilesDropDownMenuModel()
|
||||
model: Cura.CustomQualityProfilesDropDownMenuModel
|
||||
MenuButton
|
||||
{
|
||||
onClicked: Cura.MachineManager.setQualityChangesGroup(model.quality_changes_group)
|
||||
|
Loading…
x
Reference in New Issue
Block a user