Add skeleton for bg maps window

This commit is contained in:
Fabien Freling 2016-04-18 23:06:17 +02:00
parent 161f5681ee
commit 5b9d0de26f
4 changed files with 62 additions and 1 deletions

View file

@ -3,6 +3,7 @@ import QtQuick.Controls 1.4
import QtQuick.Dialogs 1.2
ApplicationWindow {
id: root
visible: true
width: 256
height: 128
@ -25,7 +26,12 @@ ApplicationWindow {
title: qsTr("View")
MenuItem {
text: qsTr("Background maps")
onTriggered: console.log("Background maps");
onTriggered: {
console.log("Background maps");
var component = Qt.createComponent("BackgroundMap.qml")
var bgMap = component.createObject(root)
bgMap.show()
}
}
}
@ -46,4 +52,5 @@ ApplicationWindow {
messageDialog.open();
}
}
}