Migration of QtMvvm from github
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
511 B

#include "containerviewmodel.h"
ContainerViewModel::ContainerViewModel(QObject *parent) :
ViewModel(parent)
{}
ContainerViewModel::~ContainerViewModel()
{
qInfo(Q_FUNC_INFO);
}
QString ContainerViewModel::vmType() const
{
return QString::fromUtf8(QMetaType::typeName(qMetaTypeId<ChildViewModel*>()));
}
void ContainerViewModel::loadChild()
{
show<ChildViewModel>();
}
ChildViewModel::ChildViewModel(QObject *parent) :
ViewModel(parent)
{}
ChildViewModel::~ChildViewModel()
{
qInfo(Q_FUNC_INFO);
}