mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Use QtApplication instead of Application
In live code it doesn't cause problems, but the static checker found it
This commit is contained in:
parent
e2a387b246
commit
b8f76d7bfb
2 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Copyright (c) 2019 Ultimaker B.V.
|
# Copyright (c) 2019 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.
|
||||||
|
|
||||||
from UM.Application import Application
|
from UM.Qt.QtApplication import QtApplication
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
import numpy
|
import numpy
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ class LayerPolygon:
|
||||||
@classmethod
|
@classmethod
|
||||||
def getColorMap(cls):
|
def getColorMap(cls):
|
||||||
if cls.__color_map is None:
|
if cls.__color_map is None:
|
||||||
theme = Application.getInstance().getTheme()
|
theme = QtApplication.getInstance().getTheme()
|
||||||
cls.__color_map = numpy.array([
|
cls.__color_map = numpy.array([
|
||||||
theme.getColor("layerview_none").getRgbF(), # NoneType
|
theme.getColor("layerview_none").getRgbF(), # NoneType
|
||||||
theme.getColor("layerview_inset_0").getRgbF(), # Inset0Type
|
theme.getColor("layerview_inset_0").getRgbF(), # Inset0Type
|
||||||
|
|
|
@ -17,6 +17,7 @@ from cura.Scene import ZOffsetDecorator
|
||||||
|
|
||||||
import random # used for list shuffling
|
import random # used for list shuffling
|
||||||
|
|
||||||
|
|
||||||
class PlatformPhysics:
|
class PlatformPhysics:
|
||||||
def __init__(self, controller, volume):
|
def __init__(self, controller, volume):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue