QtMvvm  1.0.0
A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel
Public Member Functions | List of all members
QtMvvm::IPresentingView Class Referenceabstract

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...
 

Detailed Description

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

See also
QtMvvm_IPresentingViewIid, WidgetsPresenter

Definition at line 11 of file ipresentingview.h.

Member Function Documentation

◆ tryPresent()

QtMvvm::IPresentingView::tryPresent ( QWidget view)
pure virtual

Is called to try to present a view.

Parameters
viewThe view that is tryed to be presented
Returns
true if successfully presented, false if not

If 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


The documentation for this class was generated from the following files: