- void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
- QWidget *widget) {
- painter->fillRect(x, y, dx, dy, QColor(0xcc, 0xcc, 0xff, 0xff));
- painter->setPen(QColor(0x00, 0x00, 0xff, 0xff));
- painter->drawRect(x, y, dx, dy);
- painter->drawText(0, -5, name);
- if (_widget.rowCount() != 0)
- _widget.render(painter);
+ void addItem(uint8_t* bytes, size_t num_bytes, QString line, const QString& href);
+ void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
+ QWidget *widget);
+ QRectF boundingRect() const;
+ std::array<QPointF, 3> getExits() const;