GUI: fix warnings in DisassemblerGraphView
This commit is contained in:
parent
8cf227624f
commit
98d38d94cb
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue