: width(270), height(45), name(name)
, _table(NULL)
, block(block), mainwindow(mainwindow)
- , logger(log4cxx::Logger::getLogger(name.toStdString() + " BasicBlockWidget")) {
+ , logger(log4cxx::Logger::getLogger("gui.BasicBlockWidget." + name.toStdString())) {
next[0] = NULL; next[1] = NULL;
block->getManager()->connect_rename_function_signal([=](RenameFunctionEvent* event) {updateFunctionName(event);});
Function* fun = block->getManager()->getFunction(address);
if (fun) {
- line = line.split(" ")[0] + " " + fun->getName().c_str();
+ line = line.split(" ")[0] + " " + QString(fun->getName().c_str()).toHtmlEscaped();
LOG4CXX_DEBUG(logger, "Naming function at " << address << " " << fun->getName());
}
}
_table->cellAt(row, 1).firstCursorPosition().insertHtml(line);
}
-void BasicBlockWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
- QWidget *widget) {
+void BasicBlockWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem*,
+ QWidget*) {
width = 10 + _widget->boundingRect().width();
height = 25 + _widget->boundingRect().height();
if (width < 250) width = 250;