Files

49 lines
651 B
C++
Raw Permalink Normal View History

2016-05-31 23:22:03 +02:00
#include "TextDisplayDataModel.hpp"
TextDisplayDataModel::
TextDisplayDataModel()
: _label(new QLabel("Resulting Text"))
2016-05-31 23:22:03 +02:00
{
_label->setMargin(3);
2016-05-31 23:22:03 +02:00
}
unsigned int
TextDisplayDataModel::
2016-06-05 22:16:43 +02:00
nPorts(PortType portType) const
2016-05-31 23:22:03 +02:00
{
unsigned int result = 1;
switch (portType)
{
case PortType::In:
2016-05-31 23:22:03 +02:00
result = 1;
break;
case PortType::Out:
2016-05-31 23:22:03 +02:00
result = 0;
default:
break;
}
return result;
}
NodeDataType
TextDisplayDataModel::
dataType(PortType, PortIndex) const
{
return TextData().type();
}
2016-05-31 23:22:03 +02:00
std::shared_ptr<NodeData>
TextDisplayDataModel::
outData(PortIndex)
2016-05-31 23:22:03 +02:00
{
std::shared_ptr<NodeData> ptr;
return ptr;
2016-05-31 23:22:03 +02:00
}