src/objecttypes/comment.h

Thu, 03 Oct 2019 23:44:28 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 03 Oct 2019 23:44:28 +0300
changeset 6
73e448b2943d
parent 3
55a55a9ec2c2
child 8
44679e468ba9
permissions
-rw-r--r--

language support

#pragma once
#include "modelobject.h"

namespace modelobjects
{
	class Comment;
}

class modelobjects::Comment : public BaseObject
{
public:
	Comment() = default;
	Comment(QStringView text);
	QVariant getProperty(Property property) const override;
	SetPropertyResult setProperty(
		Property property,
		const QVariant& value) override;
	QString textRepresentation() const override;
	QFont textRepresentationFont() const override;
private:
	QString storedText = "";
};

mercurial