1 #ifndef QTMVVM_QQMLVIEWPLACEHOLDER_H 2 #define QTMVVM_QQMLVIEWPLACEHOLDER_H 4 #include <QtQuick/QQuickItem> 6 #include <QtMvvmCore/ViewModel> 133 explicit QQmlViewPlaceholder(
QQuickItem *parent =
nullptr);
182 void updateImpHeight();
183 void updateImpWidth();
186 bool _autoResizeView = true;
187 bool _replaceViews = false;
188 bool _closeViewOnAction = false;
192 bool _isReady = false;
195 void connectSizeChanges();
196 void disconnectSizeChanges(
bool resetSize);
201 #endif // QTMVVM_QQMLVIEWPLACEHOLDER_H bool autoResizeView
Specify whether to automatically resize the placeholders content view.
bool closeViewOnAction
Specify whether discarding the contained view is a close action.
void replaceViewsChanged(bool replaceViews)
NOTIFY accessor for ViewPlaceholder::replaceViews.
Q_INVOKABLE bool closeAction()
A close action that propagates to the contained item.
A placeholder item to show a view within another view.
Q_INVOKABLE bool presentItem(QQuickItem *item)
The presenter method to be called from the parent view.
The QML import for the QtMvvmQuick QML module.
void autoResizeViewChanged(bool autoResizeView)
NOTIFY accessor for ViewPlaceholder::autoResizeView.
void discardView()
Closes the currenty contained view by destoying it.
void closeViewOnActionChanged(bool closeViewOnAction)
NOTIFY accessor for ViewPlaceholder::closeViewOnAction.
The primary namespace of the QtMvvm library.
void loadedViewChanged(QQuickItem *loadedView)
NOTIFY accessor for ViewPlaceholder::loadedView.
bool replaceViews
Specify what happens when showing a new viewmodel while one already exists.