Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Implemented all the signals on main qml file

Signed-off-by: André Loureiro <andre.loureiro@indt.org.br>
  • Loading branch information...
commit f005ea1aad49ac2493194691abe1d34e960fcf16 1 parent 9c6f2dc
André Loureiro authored
Showing with 24 additions and 1 deletion.
  1. +24 −1 main.qml
View
25 main.qml
@@ -13,6 +13,29 @@ Item {
MainMap {
id: mainMap
- Component.onCompleted: manager.init()
+
+ onAddLandmark: {
+ popupDialog.x = mouseObject.x
+ popupDialog.y = mouseObject.y
+ popupDialog.latitude = mouseObject.coordinate.latitude
+ popupDialog.longitude = mouseObject.coordinate.longitude
+ popupDialog.visible = !popupDialog.visible
+ }
+
+ Component.onCompleted: {
+ controller.init()
+ controller.landmarks()
+ }
+ }
+
+ PopupDialog {
+ id: popupDialog
+ visible: false
+
+ onPopupOk: {
+ controller.saveLandmark(popupDialog.latitude, popupDialog.longitude, text)
+ popupDialog.visible = !popupDialog.visible
+ popupDialog.inputText = ""
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.