00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <QtGui>
00023 #include "inputnode.h"
00024
00025
00026 InputNode::InputNode(ItemProperties item, QString name, uint id, SlateWindow *wind, QGraphicsItem * parent, QGraphicsScene * scene): Node(item, name, id, wind, parent, scene)
00027 { }
00028
00029 void InputNode::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget * widget)
00030 {
00031 Node::paint(painter, option, widget);
00032
00033 painter->setPen(Qt::darkGray);
00034 QRectF rect = outlineRect();
00035 painter->drawText((int)rect.right() - 12, (int)rect.top() + 12, ">");
00036 painter->drawText((int)rect.right() - 19, (int)rect.top() + 12, ">");
00037 }