dx + penWidth, dy + penWidth);
- if (next[0])
- result |= QRectF(QPointF(x + dx/3, y+dy),
- mapFromScene(next[0]->getEntry()));
-
+ if (next[0]) {
+ if (next[1]) {
+ result |= QRectF(QPointF(x + dx/3, y+dy),
+ mapFromScene(next[0]->getEntry()));
+ } else {
+ result |= QRectF(QPointF(x + dx/2, y+dy),
+ mapFromScene(next[0]->getEntry()));
+ }
+ }
if (next[1])
result |= QRectF(QPointF(x + 2*dx/3, y+dy),
mapFromScene(next[1]->getEntry()));
if (_widget.rowCount() != 0)
_widget.render(painter);
- painter->setPen(QColor(0x00, 0xff, 0x00, 0xff));
- if (next[0])
- painter->drawLine(QPointF(x + dx/3, y+dy),
- mapFromScene(next[0]->getEntry()));
-
+ if (next[0]) {
+ if (next[1]) {
+ painter->setPen(QColor(0x00, 0xff, 0x00, 0xff));
+ painter->drawLine(QPointF(x + dx/3, y+dy),
+ mapFromScene(next[0]->getEntry()));
+ } else {
+ painter->setPen(QColor(0x00, 0x00, 0x00, 0xff));
+ painter->drawLine(QPointF(x + dx/2, y+dy),
+ mapFromScene(next[0]->getEntry()));
+ }
+ }
painter->setPen(QColor(0xff, 0x00, 0x00, 0xff));
if (next[1])
painter->drawLine(QPointF(x + 2*dx/3, y+dy),