mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 05:07:50 -06:00
Register sidebar controller in application, start with default sidebar view
This commit is contained in:
parent
db2c3525c4
commit
f2b4cbe182
3 changed files with 45 additions and 0 deletions
16
cura/Sidebar/SidebarViewModel.py
Normal file
16
cura/Sidebar/SidebarViewModel.py
Normal 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)
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue