From 343d006ae24412efb7d65869da22c1ff851adbfd Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 17 Dec 2020 23:11:33 +0100 Subject: [PATCH] memory viewer: more cleanup --- rpcs3/rpcs3qt/memory_viewer_panel.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/rpcs3/rpcs3qt/memory_viewer_panel.h b/rpcs3/rpcs3qt/memory_viewer_panel.h index 00d8664a19..cfc40fc6c4 100644 --- a/rpcs3/rpcs3qt/memory_viewer_panel.h +++ b/rpcs3/rpcs3qt/memory_viewer_panel.h @@ -12,6 +12,16 @@ class memory_viewer_panel : public QDialog { Q_OBJECT +public: + memory_viewer_panel(QWidget* parent, u32 addr = 0); + ~memory_viewer_panel(); + + bool exit; + +protected: + void wheelEvent(QWheelEvent* event) override; + void resizeEvent(QResizeEvent* event) override; + private: u32 m_addr; u32 m_colcount; @@ -28,18 +38,9 @@ private: std::string getHeaderAtAddr(u32 addr); void scroll(s32 steps); - -public: - bool exit; - memory_viewer_panel(QWidget* parent, u32 addr = 0); - ~memory_viewer_panel(); - - void wheelEvent(QWheelEvent *event) override; - void resizeEvent(QResizeEvent *event) override; - - virtual void ShowMemory(); void SetPC(const uint pc); - //Static methods + virtual void ShowMemory(); + static void ShowImage(QWidget* parent, u32 addr, int mode, u32 sizex, u32 sizey, bool flipv); };