1
0
Fork 0

show some placeholder in the empty graph

This commit is contained in:
torusrxxx 2016-08-23 19:35:07 +08:00
parent a50feb4d33
commit 66131019f9
2 changed files with 7 additions and 3 deletions

View File

@ -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);

View File

@ -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);