Re: resetting state when my page is pop()-ed

2016-02-08 Thread Marco Martin
On Saturday 06 February 2016, Dirk Hohndel wrote: > We are using the mobile components for an Android application. > > One of the features we get by default from the components is that when the > user presses the Android BACK key the top page is pop()-ed from the stack. > > Is there a way to get

Re: resetting state when my page is pop()-ed

2016-02-06 Thread Marco Martin
On Sat, Feb 6, 2016 at 4:01 PM, wrote: > Hi, > > in the apps I wrote I have a onBackRequested signal on my Page class which > can also be used to reject the back button event (eg. event.accepted = > false); I think something like this could be added to Plasma Mobile > Components, too. Seems a g

Re: resetting state when my page is pop()-ed

2016-02-06 Thread Dirk Hohndel
On Sat, Feb 06, 2016 at 07:38:12AM -0800, Dirk Hohndel wrote: > On Sat, Feb 06, 2016 at 04:01:01PM +0100, k...@privat.broulik.de wrote: > > > > in the apps I wrote I have a onBackRequested signal on my Page class which > > can also be used to reject the back button event (eg. event.accepted = > >

Re: resetting state when my page is pop()-ed

2016-02-06 Thread Dirk Hohndel
On Sat, Feb 06, 2016 at 04:01:01PM +0100, k...@privat.broulik.de wrote: > > in the apps I wrote I have a onBackRequested signal on my Page class which > can also be used to reject the back button event (eg. event.accepted = > false); I think something like this could be added to Plasma Mobile > Co

Re: resetting state when my page is pop()-ed

2016-02-06 Thread kde
Hi, in the apps I wrote I have a onBackRequested signal on my Page class which can also be used to reject the back button event (eg. event.accepted = false); I think something like this could be added to Plasma Mobile Components, too. Perhaps also a keepStateOnPop (or so) property which defa

resetting state when my page is pop()-ed

2016-02-06 Thread Dirk Hohndel
We are using the mobile components for an Android application. One of the features we get by default from the components is that when the user presses the Android BACK key the top page is pop()-ed from the stack. Is there a way to get a call back when that happens? So something like onPagePopped