* GUI: fixed wired process refresh (#697) * GUI: fixed search list view will not refresh search list when enable regex button clicked
This commit is contained in:
parent
7f06e759f1
commit
09f768bb4c
|
|
@ -97,6 +97,7 @@ SearchListView::SearchListView(bool EnableRegex, QWidget* parent) : QWidget(pare
|
|||
connect(mSearchList, SIGNAL(contextMenuSignal(QPoint)), this, SLOT(listContextMenu(QPoint)));
|
||||
connect(mSearchList, SIGNAL(doubleClickedSignal()), this, SLOT(doubleClickedSlot()));
|
||||
connect(mSearchBox, SIGNAL(textChanged(QString)), this, SLOT(searchTextChanged(QString)));
|
||||
connect(mRegexCheckbox, SIGNAL(toggled(bool)), this, SLOT(on_checkBoxRegex_toggled(bool)));
|
||||
|
||||
// List input should always be forwarded to the filter edit
|
||||
mSearchList->setFocusProxy(mSearchBox);
|
||||
|
|
@ -195,6 +196,11 @@ void SearchListView::searchTextChanged(const QString & arg1)
|
|||
mSearchList->reloadData();
|
||||
}
|
||||
|
||||
void SearchListView::refreshSearchList()
|
||||
{
|
||||
searchTextChanged(mSearchBox->text());
|
||||
}
|
||||
|
||||
void SearchListView::listContextMenu(const QPoint & pos)
|
||||
{
|
||||
QMenu wMenu(this);
|
||||
|
|
@ -216,7 +222,7 @@ void SearchListView::doubleClickedSlot()
|
|||
void SearchListView::on_checkBoxRegex_toggled(bool checked)
|
||||
{
|
||||
Q_UNUSED(checked);
|
||||
searchTextChanged(mSearchBox->text());
|
||||
refreshSearchList();
|
||||
}
|
||||
|
||||
bool SearchListView::eventFilter(QObject* obj, QEvent* event)
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ public:
|
|||
int mSearchStartCol;
|
||||
|
||||
bool findTextInList(SearchListViewTable* list, QString text, int row, int startcol, bool startswith);
|
||||
void refreshSearchList();
|
||||
|
||||
private slots:
|
||||
void searchTextChanged(const QString & arg1);
|
||||
|
|
|
|||
|
|
@ -57,20 +57,21 @@ AttachDialog::~AttachDialog()
|
|||
|
||||
void AttachDialog::refresh()
|
||||
{
|
||||
mSearchListView->mCurList->setRowCount(0);
|
||||
mSearchListView->mCurList->setTableOffset(0);
|
||||
mSearchListView->mList->setRowCount(0);
|
||||
mSearchListView->mList->setTableOffset(0);
|
||||
DBGPROCESSINFO* entries;
|
||||
int count;
|
||||
if(!DbgFunctions()->GetProcessList(&entries, &count))
|
||||
return;
|
||||
mSearchListView->mCurList->setRowCount(count);
|
||||
mSearchListView->mList->setRowCount(count);
|
||||
for(int i = 0; i < count; i++)
|
||||
{
|
||||
mSearchListView->mCurList->setCellContent(i, 0, QString().sprintf("%.8X", entries[i].dwProcessId));
|
||||
mSearchListView->mCurList->setCellContent(i, 1, QString(entries[i].szExeFile));
|
||||
mSearchListView->mList->setCellContent(i, 0, QString().sprintf("%.8X", entries[i].dwProcessId));
|
||||
mSearchListView->mList->setCellContent(i, 1, QString(entries[i].szExeFile));
|
||||
}
|
||||
mSearchListView->mCurList->setSingleSelection(0);
|
||||
mSearchListView->mCurList->reloadData();
|
||||
mSearchListView->mList->setSingleSelection(0);
|
||||
mSearchListView->mList->reloadData();
|
||||
mSearchListView->refreshSearchList();
|
||||
}
|
||||
|
||||
void AttachDialog::on_btnAttach_clicked()
|
||||
|
|
|
|||
|
|
@ -223,6 +223,7 @@ void SymbolView::updateSymbolList(int module_count, SYMBOLMODULEINFO* modules)
|
|||
mModuleList->mList->setCellContent(i, 1, modules[i].name);
|
||||
}
|
||||
mModuleList->mList->reloadData();
|
||||
mModuleList->refreshSearchList();
|
||||
if(modules)
|
||||
BridgeFree(modules);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue