1
0
Fork 0

GUI: fix warnings in DisassemblerGraphView

This commit is contained in:
Duncan Ogilvie 2018-12-28 16:58:14 +01:00
parent 8cf227624f
commit 98d38d94cb
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 6 additions and 4 deletions

View File

@ -941,6 +941,8 @@ duint DisassemblerGraphView::getInstrForMouseEvent(QMouseEvent* event)
bool DisassemblerGraphView::getTokenForMouseEvent(QMouseEvent* event, Token & tokenOut) bool DisassemblerGraphView::getTokenForMouseEvent(QMouseEvent* event, Token & tokenOut)
{ {
Q_UNUSED(event);
Q_UNUSED(tokenOut);
/* TODO /* TODO
//Convert coordinates to system used in blocks //Convert coordinates to system used in blocks
int xofs = this->horizontalScrollBar()->value(); int xofs = this->horizontalScrollBar()->value();
@ -2140,21 +2142,21 @@ void DisassemblerGraphView::setupContextMenu()
auto breakpointMenu = new BreakpointMenu(this, getActionHelperFuncs(), [this]() auto breakpointMenu = new BreakpointMenu(this, getActionHelperFuncs(), [this]()
{ {
return zoomActionHelper(); return zoomActionHelper() != 0;
}); });
breakpointMenu->build(mMenuBuilder); breakpointMenu->build(mMenuBuilder);
mMenuBuilder->addAction(makeShortcutAction(DIcon("comment.png"), tr("&Comment"), SLOT(setCommentSlot()), "ActionSetComment"), [this](QMenu*) mMenuBuilder->addAction(makeShortcutAction(DIcon("comment.png"), tr("&Comment"), SLOT(setCommentSlot()), "ActionSetComment"), [this](QMenu*)
{ {
return zoomActionHelper(); return zoomActionHelper() != 0;
}); });
mMenuBuilder->addAction(makeShortcutAction(DIcon("label.png"), tr("&Label"), SLOT(setLabelSlot()), "ActionSetLabel"), [this](QMenu*) mMenuBuilder->addAction(makeShortcutAction(DIcon("label.png"), tr("&Label"), SLOT(setLabelSlot()), "ActionSetLabel"), [this](QMenu*)
{ {
return zoomActionHelper(); return zoomActionHelper() != 0;
}); });
mMenuBuilder->addAction(makeShortcutAction(DIcon("xrefs.png"), tr("Xrefs..."), SLOT(xrefSlot()), "ActionXrefs"), [this](QMenu*) mMenuBuilder->addAction(makeShortcutAction(DIcon("xrefs.png"), tr("Xrefs..."), SLOT(xrefSlot()), "ActionXrefs"), [this](QMenu*)
{ {
return zoomActionHelper(); return zoomActionHelper() != 0;
}); });
MenuBuilder* gotoMenu = new MenuBuilder(this); MenuBuilder* gotoMenu = new MenuBuilder(this);