Common parent class Element for Paint and Mapping, with appropriate QProperties.

This commit is contained in:
Tats
2016-01-21 16:18:59 -05:00
parent c656f8246a
commit 8ec9192f69
5 changed files with 23 additions and 5 deletions
+3
View File
@@ -19,8 +19,11 @@
#include "Element.h"
#include <QDebug>
Element::Element(uid id, UidAllocator* allocator) : _name(""), _isLocked(false), _opacity(1.0f), _allocator(allocator)
{
qDebug() << "Trying to create Element with allocator " << allocator << " and id " << id << endl;
if (id == NULL_UID)
id = allocator->allocate();
else