src/tools/basetool.cpp

Fri, 04 Mar 2022 11:37:50 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 04 Mar 2022 11:37:50 +0200
changeset 152
03f8e6d42e13
parent 143
7b62c52835a1
child 163
36ea1a8aee33
permissions
-rw-r--r--

Major refactoring
- Model now just stores objects
- Document contains business logic
- Model::EditContext is now ModelEditor, no longer a nested class

#include "basetool.h"
#include "document.h"

BaseTool::BaseTool(Document *document) :
	QObject{document},
	parentWidget{document},
	document{document}
{
}

mercurial