mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 11:56:12 +00:00
35 lines
733 B
C++
35 lines
733 B
C++
|
#include "flagswidget.h"
|
||
|
#include "ui_flagswidget.h"
|
||
|
|
||
|
#include "mainwindow.h"
|
||
|
|
||
|
FlagsWidget::FlagsWidget(MainWindow *main, QWidget *parent) :
|
||
|
QDockWidget(parent),
|
||
|
ui(new Ui::FlagsWidget)
|
||
|
{
|
||
|
ui->setupUi(this);
|
||
|
|
||
|
// Radare core found in:
|
||
|
this->main = main;
|
||
|
|
||
|
this->flagsTreeWidget = ui->flagsTreeWidget;
|
||
|
this->flagspaceCombo = ui->flagspaceCombo;
|
||
|
}
|
||
|
|
||
|
FlagsWidget::~FlagsWidget()
|
||
|
{
|
||
|
delete ui;
|
||
|
}
|
||
|
|
||
|
void FlagsWidget::on_flagsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column)
|
||
|
{
|
||
|
QString offset = item->text(2);
|
||
|
QString name = item->text(3);
|
||
|
this->main->seek(offset, name);
|
||
|
}
|
||
|
|
||
|
void FlagsWidget::on_flagspaceCombo_currentTextChanged(const QString &arg1)
|
||
|
{
|
||
|
this->main->refreshFlags();
|
||
|
}
|