Guest User

Untitled

a guest
Dec 21st, 2015
47
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data