src/modeleditcontext.cpp

Fri, 13 Dec 2019 15:55:56 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 13 Dec 2019 15:55:56 +0200
changeset 17
a5111f4e6412
parent 13
6e838748867b
child 24
1a0faaaceb84
permissions
-rw-r--r--

added teapot rendering

#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