Register sidebar controller in application, start with default sidebar view

This commit is contained in:
ChrisTerBeke 2017-12-04 11:37:49 +01:00
parent db2c3525c4
commit f2b4cbe182
3 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,16 @@
# Copyright (c) 2017 Ultimaker B.V.
from PyQt5.QtCore import Qt
from UM.Qt.ListModel import ListModel
from UM.Application import Application
from UM.PluginRegistry import PluginRegistry
## The SidebarViewModel is the default sidebar view in Cura with all the print settings and print button.
class SidebarViewModel(ListModel):
IdRole = Qt.UserRole + 1
NameRole = Qt.UserRole + 2
ActiveRole = Qt.UserRole + 3
def __init__(self, parent = None):
super().__init__(parent)