src/modeleditcontext.cpp

Sat, 14 Dec 2019 22:36:06 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 14 Dec 2019 22:36:06 +0200
changeset 19
ed9685f44ab3
parent 13
6e838748867b
child 24
1a0faaaceb84
permissions
-rw-r--r--

added missing files

#include "modeleditcontext.h"

Model::EditContext::EditContext(Model& model) :
	model{model}
{
}

void Model::EditContext::append(std::unique_ptr<linetypes::Object>&& object)
{
	this->model.append(std::move(object));
}

void Model::EditContext::setObjectProperty(
	linetypes::Object* object,
	linetypes::Property property,
	const QVariant& value)
{
	object->setProperty(property, value);
}

mercurial