Files
Phillip Stephens d5b3c7defb Linux build fixes
2020-04-17 07:18:45 -07:00

29 lines
520 B
C++

#pragma once
#include <nodes/NodeDataModel>
using QtNodes::NodeData;
using QtNodes::NodeDataType;
/// The class can potentially incapsulate any user data which
/// need to be transferred within the Node Editor graph
class TextData : public NodeData
{
public:
TextData() {}
TextData(QString const &text)
: _text(text)
{}
NodeDataType type() const override
{ return NodeDataType {QLatin1String("text"), QLatin1String("Text")}; }
QString text() const { return _text; }
private:
QString _text;
};