src/objecttypes/metacommand.cpp

changeset 13
6e838748867b
parent 8
44679e468ba9
--- a/src/objecttypes/metacommand.cpp	Sun Nov 03 17:57:21 2019 +0200
+++ b/src/objecttypes/metacommand.cpp	Sun Nov 03 18:09:47 2019 +0200
@@ -1,21 +1,21 @@
 #include "metacommand.h"
 
-modelobjects::MetaCommand::MetaCommand(QStringView text) :
-	BaseObject{},
+linetypes::MetaCommand::MetaCommand(QStringView text) :
+	Object{},
 	storedText{text.toString()} {}
 
-QVariant modelobjects::MetaCommand::getProperty(Property property) const
+QVariant linetypes::MetaCommand::getProperty(Property property) const
 {
 	switch (property)
 	{
 	case Property::Text:
 		return storedText;
 	default:
-		return BaseObject::getProperty(property);
+		return Object::getProperty(property);
 	}
 }
 
-auto modelobjects::MetaCommand::setProperty(Property property, const QVariant& value)
+auto linetypes::MetaCommand::setProperty(Property property, const QVariant& value)
 	-> SetPropertyResult
 {
 	switch (property)
@@ -24,11 +24,11 @@
 		storedText = value.toString();
 		return SetPropertyResult::Success;
 	default:
-		return BaseObject::setProperty(property, value);
+		return Object::setProperty(property, value);
 	}
 }
 
-QString modelobjects::MetaCommand::textRepresentation() const
+QString linetypes::MetaCommand::textRepresentation() const
 {
 	return this->storedText;
 }

mercurial