mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-23 15:40:34 +00:00
debugger: Fix key events when CallStack is focused
This commit is contained in:
parent
ca56f0747e
commit
c9942aa828
@ -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…
x
Reference in New Issue
Block a user