mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 20:06:12 +00:00
31 lines
717 B
C++
31 lines
717 B
C++
|
#include "relocswidget.h"
|
||
|
#include "ui_relocswidget.h"
|
||
|
|
||
|
#include "mainwindow.h"
|
||
|
|
||
|
RelocsWidget::RelocsWidget(MainWindow *main, QWidget *parent) :
|
||
|
QDockWidget(parent),
|
||
|
ui(new Ui::RelocsWidget)
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
|
||
|
// Radare core found in:
|
||
|
this->main = main;
|
||
|
this->relocsTreeWidget = ui->relocsTreeWidget;
|
||
|
}
|
||
|
|
||
|
RelocsWidget::~RelocsWidget()
|
||
|
{
|
||
|
delete ui;
|
||
|
}
|
||
|
|
||
|
void RelocsWidget::on_relocsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column)
|
||
|
{
|
||
|
// Get offset and name of item double clicked
|
||
|
// TODO: use this info to change disasm contents
|
||
|
QString offset = item->text(0);
|
||
|
QString name = item->text(1);
|
||
|
main->seek(offset, name);
|
||
|
this->main->memoryDock->raise();
|
||
|
}
|