mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 00:35:05 +00:00
Improved xrefs dialog with fcn information
This commit is contained in:
parent
e87ed8448c
commit
af5276841a
@ -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);
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ public:
|
||||
~XrefsDialog();
|
||||
|
||||
void fillRefs(QList<QStringList> refs, QList<QStringList> xrefs);
|
||||
void updateLabels(QString name);
|
||||
|
||||
private slots:
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user