ViewPage.qml 667 B

1234567891011121314151617181920212223242526272829
  1. import QtQuick 2.1
  2. import QtQuick.Controls 1.1
  3. import QtQuick.Layouts 1.1
  4. import UM 1.0 as UM
  5. UM.PreferencesPage {
  6. //: View configuration page title
  7. title: qsTr("View");
  8. function reset()
  9. {
  10. UM.Preferences.resetPreference('view/show_overhang');
  11. }
  12. GridLayout {
  13. columns: 2;
  14. CheckBox {
  15. checked: UM.Preferences.getValue('view/show_overhang');
  16. onCheckedChanged: UM.Preferences.setValue('view/show_overhang', checked)
  17. //: Display Overhang preference checkbox
  18. text: qsTr("Display Overhang");
  19. }
  20. Item { Layout.fillHeight: true; Layout.columnSpan: 2 }
  21. }
  22. }