diff --git a/Printer.qml b/Printer.qml index 17a81f023f..8eb8046ade 100644 --- a/Printer.qml +++ b/Printer.qml @@ -196,7 +196,13 @@ UM.MainWindow { } } - UM.PreferencesDialog { id: preferences } + UM.PreferencesDialog { + id: preferences + + Component.onCompleted: { + addPage(qsTr('View'), Qt.resolvedUrl('./ViewPage.qml')); + } + } PrinterActions { id: actions; diff --git a/ViewPage.qml b/ViewPage.qml new file mode 100644 index 0000000000..9cad1e019f --- /dev/null +++ b/ViewPage.qml @@ -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 } + } +}