A simple interface to make it possible for any view to present subviews. More...
#include <ipresentingview.h>
Public Member Functions | |
virtual bool | tryPresent (QWidget *view)=0 |
Is called to try to present a view. More... | |
A simple interface to make it possible for any view to present subviews.
If a the viewmodel of a view that was presented by the WidgetsPresenter as used as the parent view of another viewmodel, the parent view can implement this interface in order to be used as presenter for the view of the child viewmodel. In such a case, if the parent view implements this interface, the tryPresent() method is called to try the presentation of the child view
Definition at line 11 of file ipresentingview.h.
|
pure virtual |
Is called to try to present a view.
view | The view that is tryed to be presented |
true
if successfully presented, false
if notIf true is returned, the presenter assumes presentation was successful and thus completes. If false is returned, it resumes presenting the view normally, just as if that interface was never implemented