Guest User

Untitled

a guest
Dec 21st, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. MainPage.qml
  2.  
  3. Page {
  4. id: page
  5.  
  6. property bool stopthis: false
  7.  
  8. Component.onCompleted: {
  9.  
  10. DBase.inDBase();
  11. //populateList()
  12.  
  13. }
  14. onStatusChanged: {
  15.  
  16. console.log("status changed")
  17. if (!stopthis) {
  18. populateList()
  19. }
  20.  
  21. }
  22.  
  23. //more stuff
  24.  
  25. MenuItem {
  26. text: qsTr("Edit")
  27. onClicked: {
  28. console.log("going to edit", model.username)
  29. page.stopthis = true
  30. }
  31.  
  32. }
  33.  
  34. Dialog.qml
  35. Dialog {
  36. id: editdialog
  37.  
  38. property var modelID
  39.  
  40. acceptDestinationAction: PageStackAction.Pop
  41. acceptDestinationProperties : {"stopthis": false}
  42.  
  43. onAccepted:{
  44.  
  45. console.log("edited")
  46. }
Advertisement
Add Comment
Please, Sign In to add comment