QtMvvm  1.1.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  Q_DISABLE_COPY(IPresentingView)
14 public:
15  inline IPresentingView() = default;
16  inline virtual ~IPresentingView() = default;
17 
19  virtual bool tryPresent(QWidget *view) = 0;
20 };
21 
22 }
23 
25 #define QtMvvm_IPresentingViewIid "de.skycoder42.qtmvvm.widgets.IPresentingView"
27 
28 #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.