mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Qt5->Qt6: Rectify constant locations: UserRole, CppOwnership
part of CURA-8591
This commit is contained in:
parent
abe7c1bf7f
commit
32b52c6166
25 changed files with 167 additions and 167 deletions
|
|
@ -34,14 +34,14 @@ class _NodeInfo:
|
|||
class ObjectsModel(ListModel):
|
||||
"""Keep track of all objects in the project"""
|
||||
|
||||
NameRole = Qt.UserRole + 1
|
||||
SelectedRole = Qt.UserRole + 2
|
||||
OutsideAreaRole = Qt.UserRole + 3
|
||||
BuilplateNumberRole = Qt.UserRole + 4
|
||||
NodeRole = Qt.UserRole + 5
|
||||
PerObjectSettingsCountRole = Qt.UserRole + 6
|
||||
MeshTypeRole = Qt.UserRole + 7
|
||||
ExtruderNumberRole = Qt.UserRole + 8
|
||||
NameRole = Qt.ItemDataRole.UserRole + 1
|
||||
SelectedRole = Qt.ItemDataRole.UserRole + 2
|
||||
OutsideAreaRole = Qt.ItemDataRole.UserRole + 3
|
||||
BuilplateNumberRole = Qt.ItemDataRole.UserRole + 4
|
||||
NodeRole = Qt.ItemDataRole.UserRole + 5
|
||||
PerObjectSettingsCountRole = Qt.ItemDataRole.UserRole + 6
|
||||
MeshTypeRole = Qt.ItemDataRole.UserRole + 7
|
||||
ExtruderNumberRole = Qt.ItemDataRole.UserRole + 8
|
||||
|
||||
def __init__(self, parent = None) -> None:
|
||||
super().__init__(parent)
|
||||
|
|
|
|||
|
|
@ -36,11 +36,11 @@ class WelcomePagesModel(ListModel):
|
|||
Note that in any case, a page that has its "should_show_function" == False will ALWAYS be skipped.
|
||||
"""
|
||||
|
||||
IdRole = Qt.UserRole + 1 # Page ID
|
||||
PageUrlRole = Qt.UserRole + 2 # URL to the page's QML file
|
||||
NextPageIdRole = Qt.UserRole + 3 # The next page ID it should go to
|
||||
NextPageButtonTextRole = Qt.UserRole + 4 # The text for the next page button
|
||||
PreviousPageButtonTextRole = Qt.UserRole + 5 # The text for the previous page button
|
||||
IdRole = Qt.ItemDataRole.UserRole + 1 # Page ID
|
||||
PageUrlRole = Qt.ItemDataRole.UserRole + 2 # URL to the page's QML file
|
||||
NextPageIdRole = Qt.ItemDataRole.UserRole + 3 # The next page ID it should go to
|
||||
NextPageButtonTextRole = Qt.ItemDataRole.UserRole + 4 # The text for the next page button
|
||||
PreviousPageButtonTextRole = Qt.ItemDataRole.UserRole + 5 # The text for the previous page button
|
||||
|
||||
def __init__(self, application: "CuraApplication", parent: Optional["QObject"] = None) -> None:
|
||||
super().__init__(parent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue