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.
 
 
 
 
 

17 lines
481 B

#include "testpresenter.h"
TestPresenter::TestPresenter(QObject *parent) :
QObject{parent}
{}
void TestPresenter::present(QtMvvm::ViewModel *viewModel, const QVariantHash &params, QPointer<QtMvvm::ViewModel> parent)
{
presented.append(std::make_tuple(viewModel, params, parent));
emit presentDone();
}
void TestPresenter::showDialog(const QtMvvm::MessageConfig &config, QtMvvm::MessageResult *result)
{
dialogs.append(std::make_tuple(config, result));
emit dialogDone();
}