mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-07 07:22:15 +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);
|
int pos = ui->previewTextEdit->find( this->normalizeAddr(offset), QTextDocument::FindBackward);
|
||||||
ui->previewTextEdit->moveCursor(QTextCursor::StartOfWord, QTextCursor::MoveAnchor);
|
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();
|
~XrefsDialog();
|
||||||
|
|
||||||
void fillRefs(QList<QStringList> refs, QList<QStringList> xrefs);
|
void fillRefs(QList<QStringList> refs, QList<QStringList> xrefs);
|
||||||
|
void updateLabels(QString name);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">X-Refs to</string>
|
<string notr="true">X-Refs to: </string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -75,7 +75,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="label_3">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">X-Refs from</string>
|
<string notr="true">X-Refs from: </string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -1612,6 +1612,7 @@ void MemoryWidget::on_actionXRefs_triggered()
|
|||||||
|
|
||||||
XrefsDialog* x = new XrefsDialog(this->main, this);
|
XrefsDialog* x = new XrefsDialog(this->main, this);
|
||||||
x->setWindowTitle("X-Refs for function " + QString(fcn->name));
|
x->setWindowTitle("X-Refs for function " + QString(fcn->name));
|
||||||
|
x->updateLabels(QString(fcn->name));
|
||||||
|
|
||||||
// Get Refs and Xrefs
|
// Get Refs and Xrefs
|
||||||
bool ok;
|
bool ok;
|
||||||
|
Loading…
Reference in New Issue
Block a user