QtMvvm  1.0.0
A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel
ipresentingview.h
Go to the documentation of this file.
1 #ifndef QTMVVM_IPRESENTINGVIEW_H
2 #define QTMVVM_IPRESENTINGVIEW_H
3 
4 #include <QtWidgets/qwidget.h>
5 
6 #include "QtMvvmWidgets/qtmvvmwidgets_global.h"
7 
8 namespace QtMvvm {
9 
11 class Q_MVVMWIDGETS_EXPORT IPresentingView
12 {
13 public:
14  inline virtual ~IPresentingView() = default;
15 
17  virtual bool tryPresent(QWidget *view) = 0;
18 };
19 
20 }
21 
23 #define QtMvvm_IPresentingViewIid "de.skycoder42.qtmvvm.widgets.IPresentingView"
25 
26 #endif // QTMVVM_IPRESENTINGVIEW_H
A simple interface to make it possible for any view to present subviews.
#define QtMvvm_IPresentingViewIid
The IID of the QtMvvm::IPresentingView class.
The primary namespace of the QtMvvm library.
Definition: binding.h:10