mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-08 18:09:05 +08:00
Add a preference and preference page for displaying overhangs
This commit is contained in:
parent
5dcd5c2258
commit
c723601f85
@ -196,7 +196,13 @@ UM.MainWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.PreferencesDialog { id: preferences }
|
UM.PreferencesDialog {
|
||||||
|
id: preferences
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
addPage(qsTr('View'), Qt.resolvedUrl('./ViewPage.qml'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PrinterActions {
|
PrinterActions {
|
||||||
id: actions;
|
id: actions;
|
||||||
|
23
ViewPage.qml
Normal file
23
ViewPage.qml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import QtQuick 2.1
|
||||||
|
import QtQuick.Controls 1.1
|
||||||
|
import QtQuick.Layouts 1.1
|
||||||
|
|
||||||
|
import UM 1.0 as UM
|
||||||
|
|
||||||
|
UM.PreferencesPage {
|
||||||
|
//: General configuration page title
|
||||||
|
title: qsTr("View");
|
||||||
|
|
||||||
|
GridLayout {
|
||||||
|
columns: 2;
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
checked: UM.Preferences.getValue('view/show_overhang');
|
||||||
|
onCheckedChanged: UM.Preferences.setValue('view/show_overhang', checked)
|
||||||
|
|
||||||
|
text: qsTr("Display overhang");
|
||||||
|
}
|
||||||
|
|
||||||
|
Item { Layout.fillHeight: true; Layout.columnSpan: 2 }
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user