Qt::LinksAccessibleByMouse);
if (width < 250) width = 250;
+
+ QObject::connect(_widget.get(), &QGraphicsTextItem::linkActivated,
+ [=](QString str) {
+ if (str.startsWith("function:")) {
+ QString address = str.remove("function:");
+ mainwindow->switchMainPlaneToAddress(address.toInt(NULL, 16));
+ }
+ });
+}
}
void BasicBlockWidget::addItem(uint8_t* bytes, size_t num_bytes,
}
_table->cellAt(row, 1).firstCursorPosition().insertHtml(line);
-
- QObject::connect(_widget.get(), &QGraphicsTextItem::linkActivated,
- [=](QString str) {
- if (str.startsWith("function:")) {
- QString address = str.remove("function:");
- mainwindow->switchMainPlaneToAddress(address.toInt(NULL, 16));
- }
- });
}
void BasicBlockWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,