Improved xrefs dialog with fcn information

This commit is contained in:
Hugo Teso 2017-04-04 13:19:34 +02:00
parent e87ed8448c
commit af5276841a
4 changed files with 9 additions and 2 deletions

View File

@ -131,3 +131,8 @@ void XrefsDialog::on_toTreeWidget_itemSelectionChanged()
int pos = ui->previewTextEdit->find( this->normalizeAddr(offset), QTextDocument::FindBackward);
ui->previewTextEdit->moveCursor(QTextCursor::StartOfWord, QTextCursor::MoveAnchor);
}
void XrefsDialog::updateLabels(QString name) {
ui->label_2->setText(ui->label_2->text() + name);
ui->label_3->setText(ui->label_3->text() + name);
}

View File

@ -21,6 +21,7 @@ public:
~XrefsDialog();
void fillRefs(QList<QStringList> refs, QList<QStringList> xrefs);
void updateLabels(QString name);
private slots:

View File

@ -45,7 +45,7 @@
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string notr="true">X-Refs to</string>
<string notr="true">X-Refs to: </string>
</property>
</widget>
</item>
@ -75,7 +75,7 @@
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string notr="true">X-Refs from</string>
<string notr="true">X-Refs from: </string>
</property>
</widget>
</item>

View File

@ -1612,6 +1612,7 @@ void MemoryWidget::on_actionXRefs_triggered()
XrefsDialog* x = new XrefsDialog(this->main, this);
x->setWindowTitle("X-Refs for function " + QString(fcn->name));
x->updateLabels(QString(fcn->name));
// Get Refs and Xrefs
bool ok;