mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Qt/MemoryViewWidget: Don't use a member variable to hold information about the current mouse click.
This commit is contained in:
@ -7,6 +7,8 @@
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
class QPoint;
|
||||
|
||||
namespace AddressSpace
|
||||
{
|
||||
enum class Type;
|
||||
@ -44,8 +46,7 @@ public:
|
||||
|
||||
void Update();
|
||||
void UpdateFont();
|
||||
void ToggleBreakpoint();
|
||||
void ToggleRowBreakpoint(bool row);
|
||||
void ToggleBreakpoint(u32 addr, bool row);
|
||||
|
||||
void SetAddressSpace(AddressSpace::Type address_space);
|
||||
AddressSpace::Type GetAddressSpace() const;
|
||||
@ -55,8 +56,6 @@ public:
|
||||
|
||||
void SetBPLoggingEnabled(bool enabled);
|
||||
|
||||
u32 GetContextAddress() const;
|
||||
|
||||
void resizeEvent(QResizeEvent*) override;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
@ -68,9 +67,9 @@ signals:
|
||||
void RequestWatch(QString name, u32 address);
|
||||
|
||||
private:
|
||||
void OnContextMenu();
|
||||
void OnCopyAddress();
|
||||
void OnCopyHex();
|
||||
void OnContextMenu(const QPoint& pos);
|
||||
void OnCopyAddress(u32 addr);
|
||||
void OnCopyHex(u32 addr);
|
||||
void UpdateBreakpointTags();
|
||||
void UpdateColumns(Type type, int first_column);
|
||||
|
||||
@ -78,8 +77,6 @@ private:
|
||||
Type m_type = Type::Hex32;
|
||||
BPType m_bp_type = BPType::ReadWrite;
|
||||
bool m_do_log = true;
|
||||
u32 m_context_address;
|
||||
u32 m_base_address;
|
||||
u32 m_address = 0;
|
||||
int m_font_width = 0;
|
||||
int m_font_vspace = 0;
|
||||
|
Reference in New Issue
Block a user