src/modeleditcontext.cpp

Fri, 13 Dec 2019 21:35:59 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 13 Dec 2019 21:35:59 +0200
changeset 18
918b6c0f8b5b
parent 13
6e838748867b
child 24
1a0faaaceb84
permissions
-rw-r--r--

things

#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