import QtQuick 1.0 import com.nokia.symbian 1.1 import "UIConstants.js" as UI Page { id: programSettings signal accepted signal rejected property alias showCategoryIds: showIds.checked signal saveSettings() Column { anchors.top: parent.top anchors.left: parent.left anchors.right: parent.right anchors.margins: UI.DEFAULT_MARGIN spacing: 16 CheckBox { id: showIds text: "Отображать категории грибов" } } Button { id: saveButton text: "Сохранить" anchors.left: parent.left anchors.bottom: parent.bottom anchors.margins: 10 onClicked: accepted(); } Button { text: "Отмена" anchors.right: parent.right anchors.bottom: parent.bottom anchors.margins: 10 width: saveButton.width onClicked: pageStack.pop(); } onAccepted: { appWindow.showCategories = showIds.checked saveSettings() pageStack.pop() } }