From 9c09c16a50f3ce29ce3976d67291322aa26f8955 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Wed, 9 Jul 2025 13:13:47 -0400 Subject: Quiesce the FeatureMap widget when hidden or disabled. --- ui/featuremap.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/featuremap.h b/ui/featuremap.h index fb84165b..0447ff39 100644 --- a/ui/featuremap.h +++ b/ui/featuremap.h @@ -68,10 +68,15 @@ class BINARYNINJAUIAPI FeatureMap : public QWidget void updateCoordinates(); void updateMappedRegions(); + void connectDataStore(); + void disconnectDataStore(); + public: FeatureMap(SplitPaneWidget* owner, BinaryViewRef data, bool vertical = true); virtual ~FeatureMap(); + void enableBackgroundProcessing(bool enable); + void backgroundRefresh(); std::pair getLinearOffsetForAddress(uint64_t addr); @@ -93,6 +98,8 @@ protected: virtual void mousePressEvent(QMouseEvent* event) override; virtual void resizeEvent(QResizeEvent* event) override; virtual void paintEvent(QPaintEvent* event) override; + virtual void showEvent(QShowEvent* event) override; + virtual void hideEvent(QHideEvent* event) override; void scrollTo(int x, int y, bool addHistoryEntry = false); private Q_SLOTS: -- cgit v1.3.1