show some placeholder in the empty graph
This commit is contained in:
parent
a50feb4d33
commit
66131019f9
|
|
@ -321,7 +321,11 @@ void DisassemblerGraphView::paintEvent(QPaintEvent* event)
|
|||
p.setBrush(Qt::black);
|
||||
|
||||
if(!this->ready || !DbgIsDebugging())
|
||||
{
|
||||
p.setPen(Qt::black);
|
||||
p.drawText(viewportRect, Qt::AlignCenter | Qt::AlignVCenter, tr("Use Graph command or menu action to draw control flow graph here..."));
|
||||
return;
|
||||
}
|
||||
|
||||
if(drawOverview)
|
||||
paintOverview(p, viewportRect, xofs, yofs);
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ SourceView::SourceView(QString path, int line, StdTable* parent)
|
|||
mList->enableColumnSorting(false);
|
||||
mSearchList->enableColumnSorting(false);
|
||||
|
||||
addColumnAt(sizeof(duint) * 2, "Address");
|
||||
addColumnAt(6, "Line");
|
||||
addColumnAt(0, "Code");
|
||||
addColumnAt(sizeof(duint) * 2, tr("Address"));
|
||||
addColumnAt(6, tr("Line"));
|
||||
addColumnAt(0, tr("Code"));
|
||||
|
||||
loadFile();
|
||||
setSelection(line);
|
||||
|
|
|
|||
Loading…
Reference in New Issue