mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-23 13:25:27 +00:00
bf07f2a002
* Add getBreakpointsAddresses to list breakpoints offsets * Add breakpoint highligthing and improve of disassembly UIs * Improve dialogs and positions * Add graph,offset option to preference * Tiny text fix * Updated radare2 sumodule
42 lines
855 B
C++
42 lines
855 B
C++
|
|
#include "QuickFilterView.h"
|
|
#include "ui_QuickFilterView.h"
|
|
|
|
QuickFilterView::QuickFilterView(QWidget *parent) :
|
|
QWidget(parent),
|
|
ui(new Ui::QuickFilterView())
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
connect(ui->closeFilterButton, &QAbstractButton::clicked, this, &QuickFilterView::closeFilter);
|
|
|
|
connect(ui->filterLineEdit, &QLineEdit::textChanged, this, [this](const QString & text) {
|
|
emit filterTextChanged(text);
|
|
});
|
|
}
|
|
|
|
QuickFilterView::~QuickFilterView() {}
|
|
|
|
|
|
void QuickFilterView::showFilter()
|
|
{
|
|
show();
|
|
ui->filterLineEdit->setFocus();
|
|
}
|
|
|
|
void QuickFilterView::clearFilter()
|
|
{
|
|
if (ui->filterLineEdit->text().isEmpty()) {
|
|
closeFilter();
|
|
} else {
|
|
ui->filterLineEdit->setText("");
|
|
}
|
|
}
|
|
|
|
void QuickFilterView::closeFilter()
|
|
{
|
|
ui->filterLineEdit->setText("");
|
|
hide();
|
|
emit filterClosed();
|
|
}
|