mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
debugger: Fix key events when CallStack is focused
This commit is contained in:
parent
ca56f0747e
commit
c9942aa828
2 changed files with 10 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include "Utilities/StrFmt.h"
|
#include "Utilities/StrFmt.h"
|
||||||
|
|
||||||
|
#include <QKeyEvent>
|
||||||
|
|
||||||
constexpr auto qstr = QString::fromStdString;
|
constexpr auto qstr = QString::fromStdString;
|
||||||
|
|
||||||
call_stack_list::call_stack_list(QWidget* parent) : QListWidget(parent)
|
call_stack_list::call_stack_list(QWidget* parent) : QListWidget(parent)
|
||||||
|
@ -17,6 +19,12 @@ call_stack_list::call_stack_list(QWidget* parent) : QListWidget(parent)
|
||||||
hide();
|
hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void call_stack_list::keyPressEvent(QKeyEvent* event)
|
||||||
|
{
|
||||||
|
QListWidget::keyPressEvent(event);
|
||||||
|
event->ignore(); // Propagate the event to debugger_frame
|
||||||
|
}
|
||||||
|
|
||||||
void call_stack_list::HandleUpdate(const std::vector<std::pair<u32, u32>>& call_stack)
|
void call_stack_list::HandleUpdate(const std::vector<std::pair<u32, u32>>& call_stack)
|
||||||
{
|
{
|
||||||
clear();
|
clear();
|
||||||
|
|
|
@ -21,4 +21,6 @@ public Q_SLOTS:
|
||||||
void HandleUpdate(const std::vector<std::pair<u32, u32>>& call_stack);
|
void HandleUpdate(const std::vector<std::pair<u32, u32>>& call_stack);
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void OnCallStackListDoubleClicked();
|
void OnCallStackListDoubleClicked();
|
||||||
|
private:
|
||||||
|
void keyPressEvent(QKeyEvent* event) override;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue