diff options
| author | Brian Potchik <brian@vector35.com> | 2025-05-02 12:01:38 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-05-02 12:01:38 -0400 |
| commit | e522b8c582297fe120af38335cf5764379d0ee09 (patch) | |
| tree | 95666804c2d865fa32b5d7fee2446caf5e8e4618 /ui/flowgraphwidget.h | |
| parent | c997e959029e004faaa15fcfb27df48c15baff11 (diff) | |
Add support to FlowGraphWidget for Initial Size to Fit.
Diffstat (limited to 'ui/flowgraphwidget.h')
| -rw-r--r-- | ui/flowgraphwidget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/flowgraphwidget.h b/ui/flowgraphwidget.h index 52635584..231d493f 100644 --- a/ui/flowgraphwidget.h +++ b/ui/flowgraphwidget.h @@ -105,6 +105,7 @@ class BINARYNINJAUIAPI FlowGraphWidget : QTimer* m_loadingTimer; QTimer* m_zoomTimer; QTimer* m_zoomPauseTimer; + bool m_initialSizeToFit = false; std::mutex m_updateMutex; bool m_updated; @@ -255,6 +256,7 @@ class BINARYNINJAUIAPI FlowGraphWidget : virtual void setRelatedIndexHighlights(FunctionRef func, const std::set<size_t>& related) override; virtual void setRelatedInstructionHighlights(FunctionRef func, const std::set<uint64_t>& related) override; + void enableInitialSizeToFit() { m_initialSizeToFit = true; } float getScale() const { return m_scale; } float maxScale() const; virtual void zoom(bool direction); |
