cutter/src/widgets/relocswidget.cpp
Joxean 7c63a67575 Fix many warnings and remove waste code (#81)
* Fixed a lot of warnings and removed waste code

* Fixed more warnings and removed more waste code

* restore XrefsDialog::updateLabels

This function is used in memorywidget.cpp
2017-04-09 19:09:35 +02:00

33 lines
740 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)
{
QNOTUSED(column);
// Get offset and name of item double clicked
// TODO: use this info to change disasm contents
QString offset = item->text(1);
QString name = item->text(2);
main->seek(offset, name);
this->main->memoryDock->raise();
}