import QtGui 1.0
MainWindow {
+ windowTitle: qsTr("Declarative Widget Editor")
+
+ size: Qt.size(500, 300)
MenuBar {
Menu {
title: qsTr("File")
Action {
- text: "New"
+ text: qsTr("New")
+ }
+
+ Action {
+ text: qsTr("Save")
+ }
+
+ Separator {}
+
+ Action {
+ text: qsTr("Print")
}
Separator {}
title: qsTr("Edit")
Action {
- text: "Copy"
+ text: qsTr("Undo")
+ onTriggered: textEdit.undo()
+ }
- onTriggered: textEdit.copy()
+ Action {
+ text: qsTr("Redo")
+ onTriggered: textEdit.redo()
+ }
+
+ Separator {}
+
+ Action {
+ text: qsTr("Cut")
+ onTriggered: textEdit.cut()
}
Action {
- text: "Paste"
+ text: qsTr("Copy")
+ onTriggered: textEdit.copy()
+ }
+ Action {
+ text: qsTr("Paste")
onTriggered: textEdit.paste()
}
+
+ Separator {}
+
+ Action {
+ text: qsTr("Select All")
+ onTriggered: textEdit.selectAll()
+ }
}
- Separator {}
+ Menu {
+ title: qsTr("View")
+
+ Action {
+ text: qsTr("Enlarge Font")
+ onTriggered: textEdit.zoomIn()
+ }
+
+ Action {
+ text: qsTr("Shrink Font")
+ onTriggered: textEdit.zoomOut()
+ }
+ }
Menu {
title: qsTr("Help")
Action {
- text: "About"
+ text: qsTr("About")
}
Action {
- text: "About Qt"
+ text: qsTr("About Qt")
}
}
}