Implement reset() for ViewPage

This commit is contained in:
Arjen Hiemstra 2015-04-29 17:42:40 +02:00
parent 06c5419054
commit 8cbc239af6

View File

@ -5,9 +5,14 @@ import QtQuick.Layouts 1.1
import UM 1.0 as UM
UM.PreferencesPage {
//: General configuration page title
//: View configuration page title
title: qsTr("View");
function reset()
{
UM.Preferences.resetPreference('view/show_overhang');
}
GridLayout {
columns: 2;
@ -15,7 +20,8 @@ UM.PreferencesPage {
checked: UM.Preferences.getValue('view/show_overhang');
onCheckedChanged: UM.Preferences.setValue('view/show_overhang', checked)
text: qsTr("Display overhang");
//: Display Overhang preference checkbox
text: qsTr("Display Overhang");
}
Item { Layout.fillHeight: true; Layout.columnSpan: 2 }