Advertisement
Guest User

Untitled

a guest
Dec 21st, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. dialog
  2.  
  3. Dialog {
  4. id: editdialog
  5.  
  6. property var modelID
  7. signal thehell (bool chang)
  8.  
  9. onAccepted:{
  10. editdialog.thehell(false)
  11. console.log("edited connection")
  12. }
  13.  
  14. fisrtpage.qml
  15.  
  16. MenuItem {
  17. text: qsTr("Edit")
  18. onClicked: {
  19. console.log("going to edit", model.username)
  20. page.stopthisshit = true
  21. var test = pageStack.push(Qt.resolvedUrl("EditCon.qml"), {"modelID": model})
  22. test.thehell.connect(function(chang) { page.stopthisshit = chang } )
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement