35 std::vector<SessionModel*> models = {&sample_model, &material_model};
45 std::vector<SessionModel*> models = {&sample_model, &material_model};
60 int model_changed_count{0};
64 std::vector<SessionModel*> models = {&sample_model, &material_model};
66 auto on_model_changed = [&model_changed_count]() { ++model_changed_count; };
72 EXPECT_EQ(model_changed_count, 1);
77 EXPECT_EQ(model_changed_count, 1);
Tracks changes in all models.
bool hasChanged() const
Returns true if the change in the models has been registered since the last call of resetChanged.
void resetChanged()
Reset controller to initial state, pretending that no changes has been registered.
Item to carry concrete editable entity (e.g.
Main class to hold hierarchy of SessionItem objects.
T * insertItem(SessionItem *parent=nullptr, const TagRow &tagrow={})
Inserts item into given parent under given tagrow.
Tests for ProjectChangeController class.
~ProjectChangeControllerTest()
materialitems.h Collection of materials to populate MaterialModel.
TEST_F(ProjectChangeControllerTest, initialState)