39 auto controller = Factory::CreateController<AllChildrenStrategy, LabelDataRowStrategy>(
40 &session_model, &view_model);
42 controller->setRootSessionItem(session_model.
rootItem());
44 EXPECT_EQ(controller->sessionModel(), &session_model);
45 EXPECT_EQ(controller->rootSessionItem(), session_model.
rootItem());
Main class to hold hierarchy of SessionItem objects.
SessionItem * rootItem() const
Returns root item of the model.
Base class for all view models to show content of SessionModel in Qt views.
int rowCount(const QModelIndex &parent=QModelIndex()) const override
int columnCount(const QModelIndex &parent=QModelIndex()) const override
Tests of ViewModelControllerFactory method.
~ViewModelControllerFactoryTest()
materialitems.h Collection of materials to populate MaterialModel.
TEST_F(ViewModelControllerFactoryTest, allItemsControllerBuild)