diff options
author | jkobus <jaroslaw.kobus@digia.com> | 2014-08-15 08:44:22 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@digia.com> | 2014-08-26 10:08:14 +0200 |
commit | 2693e087683cc49196d13e57ccda17e477eb5b77 (patch) | |
tree | 8c89a19d455bf128a3e59b07c411c998d742f23a /share | |
parent | 440c40f53411054255f41f3efc96ec0a537e234c (diff) | |
download | qt-creator-2693e087683cc49196d13e57ccda17e477eb5b77.tar.gz |
Add an Open menu action to qt quick templates
Task-number: QTCREATORBUG-11728
Change-Id: I7f3ad47a2fe4a247efefe57a0de5149c64ac2456
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'share')
4 files changed, 16 insertions, 0 deletions
diff --git a/share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qml b/share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qml index f886b99fb9..51f84b5106 100644 --- a/share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qml +++ b/share/qtcreator/templates/qml/qtquickcontrols_1_0/main.qml @@ -11,6 +11,10 @@ ApplicationWindow { Menu { title: qsTr("File") MenuItem { + text: qsTr("&Open") + onTriggered: console.log("Open action triggered"); + } + MenuItem { text: qsTr("Exit") onTriggered: Qt.quit(); } diff --git a/share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml b/share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml index 74609d82c8..211da365f7 100644 --- a/share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml +++ b/share/qtcreator/templates/qml/qtquickcontrols_1_1/main.qml @@ -11,6 +11,10 @@ ApplicationWindow { Menu { title: qsTr("File") MenuItem { + text: qsTr("&Open") + onTriggered: console.log("Open action triggered"); + } + MenuItem { text: qsTr("Exit") onTriggered: Qt.quit(); } diff --git a/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/main.qml b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/main.qml index 2e6b1dd3d0..bece7d88e9 100644 --- a/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/main.qml +++ b/share/qtcreator/templates/qtquick/qtquickcontrols_1_0/main.qml @@ -11,6 +11,10 @@ ApplicationWindow { Menu { title: qsTr("File") MenuItem { + text: qsTr("&Open") + onTriggered: console.log("Open action triggered"); + } + MenuItem { text: qsTr("Exit") onTriggered: Qt.quit(); } diff --git a/share/qtcreator/templates/qtquick/qtquickcontrols_1_1/main.qml b/share/qtcreator/templates/qtquick/qtquickcontrols_1_1/main.qml index 4187749b5f..cd9583c14d 100644 --- a/share/qtcreator/templates/qtquick/qtquickcontrols_1_1/main.qml +++ b/share/qtcreator/templates/qtquick/qtquickcontrols_1_1/main.qml @@ -11,6 +11,10 @@ ApplicationWindow { Menu { title: qsTr("File") MenuItem { + text: qsTr("&Open") + onTriggered: console.log("Open action triggered"); + } + MenuItem { text: qsTr("Exit") onTriggered: Qt.quit(); } |