diff -r 1de2b8d64e9f -r 98906a94732f src/linetypes/object.cpp --- a/src/linetypes/object.cpp Tue Jan 28 23:34:49 2020 +0200 +++ b/src/linetypes/object.cpp Thu Jan 30 19:20:11 2020 +0200 @@ -9,27 +9,27 @@ return id; } -linetypes::Object::Object() : +ldraw::Object::Object() : id {getIdForNewObject()} { } -linetypes::Object::~Object() +ldraw::Object::~Object() { } -bool linetypes::Object::hasColor() const +bool ldraw::Object::hasColor() const { return false; } -QVariant linetypes::Object::getProperty(Property id) const +QVariant ldraw::Object::getProperty(Property id) const { Q_UNUSED(id); return {}; } -auto linetypes::Object::setProperty(Property id, const QVariant& value) +auto ldraw::Object::setProperty(Property id, const QVariant& value) -> SetPropertyResult { Q_UNUSED(id) @@ -37,38 +37,38 @@ return SetPropertyResult::PropertyNotHandled; } -QBrush linetypes::Object::textRepresentationForeground() const +QBrush ldraw::Object::textRepresentationForeground() const { return {}; } -QBrush linetypes::Object::textRepresentationBackground() const +QBrush ldraw::Object::textRepresentationBackground() const { return {}; } -QFont linetypes::Object::textRepresentationFont() const +QFont ldraw::Object::textRepresentationFont() const { return {}; } -void linetypes::Object::getPolygons(std::vector& polygons, GetPolygonsContext* context) const +void ldraw::Object::getPolygons(std::vector& polygons, GetPolygonsContext* context) const { Q_UNUSED(polygons) Q_UNUSED(context) } -linetypes::ColoredObject::ColoredObject(const Color color_index) : +ldraw::ColoredObject::ColoredObject(const Color color_index) : colorIndex{color_index} { } -bool linetypes::ColoredObject::hasColor() const +bool ldraw::ColoredObject::hasColor() const { return true; } -QVariant linetypes::ColoredObject::getProperty(Property id) const +QVariant ldraw::ColoredObject::getProperty(Property id) const { switch (id) { @@ -79,7 +79,7 @@ } } -auto linetypes::ColoredObject::setProperty(Property id, const QVariant& value) +auto ldraw::ColoredObject::setProperty(Property id, const QVariant& value) -> SetPropertyResult { switch (id) @@ -103,7 +103,7 @@ } } -QString linetypes::Empty::textRepresentation() const +QString ldraw::Empty::textRepresentation() const { return ""; }