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.
42 lines
756 B
42 lines
756 B
#include "testviewmodel.h"
|
|
|
|
TestViewModel::TestViewModel(QObject *parent) :
|
|
ViewModel(parent)
|
|
{}
|
|
|
|
void TestViewModel::presenChild(const QVariantHash ¶ms)
|
|
{
|
|
show<TestViewModel>(params);
|
|
}
|
|
|
|
void TestViewModel::presentResult(quint32 code)
|
|
{
|
|
showForResult<TestViewModel>(code);
|
|
}
|
|
|
|
void TestViewModel::onInit(const QVariantHash ¶ms)
|
|
{
|
|
}
|
|
|
|
void TestViewModel::onResult(quint32 requestCode, const QVariant &result)
|
|
{
|
|
results.append(std::make_tuple(requestCode, result));
|
|
}
|
|
|
|
|
|
|
|
TestSingleViewModel::TestSingleViewModel(QObject *parent) :
|
|
ViewModel(parent)
|
|
{}
|
|
|
|
|
|
|
|
TestContainedViewModel::TestContainedViewModel(QObject *parent) :
|
|
ViewModel(parent)
|
|
{}
|
|
|
|
|
|
|
|
TestContainedSingleViewModel::TestContainedSingleViewModel(QObject *parent) :
|
|
ViewModel(parent)
|
|
{}
|
|
|