Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MainPage.qml
- Page {
- id: page
- property bool stopthis: false
- Component.onCompleted: {
- DBase.inDBase();
- //populateList()
- }
- onStatusChanged: {
- console.log("status changed")
- if (!stopthis) {
- populateList()
- }
- }
- //more stuff
- MenuItem {
- text: qsTr("Edit")
- onClicked: {
- console.log("going to edit", model.username)
- page.stopthis = true
- }
- }
- Dialog.qml
- Dialog {
- id: editdialog
- property var modelID
- acceptDestinationAction: PageStackAction.Pop
- acceptDestinationProperties : {"stopthis": false}
- onAccepted:{
- console.log("edited")
- }
Advertisement
Add Comment
Please, Sign In to add comment