mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Get default settings view to work as sidebar component
This commit is contained in:
parent
5eeb98bbcf
commit
3c863fc388
8 changed files with 138 additions and 49 deletions
|
@ -366,19 +366,24 @@ UM.MainWindow
|
|||
onStopMonitoringPrint: base.showPrintMonitor = false
|
||||
}
|
||||
|
||||
Sidebar
|
||||
Loader
|
||||
{
|
||||
id: sidebar;
|
||||
id: sidebar
|
||||
|
||||
anchors
|
||||
{
|
||||
top: topbar.bottom;
|
||||
bottom: parent.bottom;
|
||||
right: parent.right;
|
||||
top: topbar.bottom
|
||||
bottom: parent.bottom
|
||||
right: parent.right
|
||||
}
|
||||
z: 1
|
||||
width: UM.Theme.getSize("sidebar").width;
|
||||
monitoringPrint: base.showPrintMonitor
|
||||
|
||||
width: UM.Theme.getSize("sidebar").width
|
||||
|
||||
// all sidebar components will have access to the show print monitor flag
|
||||
property bool showPrintMonitor: base.showPrintMonitor
|
||||
|
||||
// dynamically get the component from the sidebar controller
|
||||
source: Cura.SidebarController.activeComponentPath
|
||||
}
|
||||
|
||||
Rectangle
|
||||
|
|
21
resources/qml/SidebarSettings.qml
Normal file
21
resources/qml/SidebarSettings.qml
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright (c) 2017 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.2
|
||||
|
||||
Sidebar
|
||||
{
|
||||
id: sidebarSettings
|
||||
|
||||
property bool showPrintMonitor: false
|
||||
|
||||
anchors {
|
||||
top: parent.top
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
}
|
||||
|
||||
width: parent.width
|
||||
monitoringPrint: showPrintMonitor
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue