diff options
| author | KyleMiles <krm504@nyu.edu> | 2022-01-27 22:43:28 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2022-01-28 00:24:06 -0500 |
| commit | 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 (patch) | |
| tree | dace4156d03148bcaf02df138ab4e0d93e61bc6f /examples/triage/byte.h | |
| parent | 519c9db22367f2659d1a54599fab47e6313be06e (diff) | |
Format All Files
Diffstat (limited to 'examples/triage/byte.h')
| -rw-r--r-- | examples/triage/byte.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/triage/byte.h b/examples/triage/byte.h index 61cb51a4..1c8c20f8 100644 --- a/examples/triage/byte.h +++ b/examples/triage/byte.h @@ -14,7 +14,7 @@ struct ByteViewLine }; -class ByteView: public QAbstractScrollArea, public View +class ByteView : public QAbstractScrollArea, public View { BinaryViewRef m_data; RenderContext m_render; @@ -76,7 +76,7 @@ class ByteView: public QAbstractScrollArea, public View uint64_t addressFromLocation(int x, int y); -public: + public: ByteView(QWidget* parent, BinaryViewRef data); virtual BinaryViewRef getData() override; @@ -93,7 +93,7 @@ public: uint64_t getEnd(); uint64_t getLength(); -protected: + protected: virtual void resizeEvent(QResizeEvent* event) override; virtual void paintEvent(QPaintEvent* event) override; virtual void wheelEvent(QWheelEvent* event) override; @@ -102,16 +102,16 @@ protected: virtual void mousePressEvent(QMouseEvent* event) override; virtual void mouseMoveEvent(QMouseEvent* event) override; -private Q_SLOTS: + private Q_SLOTS: void scrollBarMoved(int value); void scrollBarAction(int action); void cursorTimerEvent(); }; -class ByteViewType: public ViewType +class ByteViewType : public ViewType { -public: + public: ByteViewType(); virtual int getPriority(BinaryViewRef data, const QString& filename) override; virtual QWidget* create(BinaryViewRef data, ViewFrame* frame) override; |
