ViewPage.qml 766 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright (c) 2015 Ultimaker B.V.
  2. // Cura is released under the terms of the AGPLv3 or higher.
  3. import QtQuick 2.1
  4. import QtQuick.Controls 1.1
  5. import QtQuick.Layouts 1.1
  6. import UM 1.0 as UM
  7. UM.PreferencesPage {
  8. //: View configuration page title
  9. title: qsTr("View");
  10. function reset()
  11. {
  12. UM.Preferences.resetPreference("view/show_overhang");
  13. }
  14. GridLayout {
  15. columns: 2;
  16. CheckBox {
  17. checked: UM.Preferences.getValue("view/show_overhang");
  18. onCheckedChanged: UM.Preferences.setValue("view/show_overhang", checked)
  19. //: Display Overhang preference checkbox
  20. text: qsTr("Display Overhang");
  21. }
  22. Item { Layout.fillHeight: true; Layout.columnSpan: 2 }
  23. }
  24. }