From e508e8f4a240ea870ca47060ebb3b7e9d7091e14 Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Wed, 22 Apr 2026 15:15:44 -0700 Subject: Share hover-preview logic between LinearView and FlowGraphWidget --- ui/util.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/util.h b/ui/util.h index 1123b9c6..cae089b0 100644 --- a/ui/util.h +++ b/ui/util.h @@ -176,6 +176,12 @@ bool BINARYNINJAUIAPI showDisassemblyPreview(QWidget* parent, ViewFrame* frame, const ViewLocation& location); void BINARYNINJAUIAPI showTextTooltip(QWidget* parent, const QPoint& previewPos, const QString& text); +// Interpret the hovered token and, if applicable, displays a tooltip or preview. If no token-driven preview matches +// and `dataflowFallbackAddress` is set, a dataflow-details tooltip is shown for that address. +void BINARYNINJAUIAPI dispatchTokenHoverPreview(View* view, const QPoint& globalPos, const HighlightTokenState& token, + FunctionRef func, uint64_t lineAddr, size_t instrIndex, const std::vector& lineTags, + std::optional dataflowFallbackAddress); + bool BINARYNINJAUIAPI isBinaryNinjaDatabase(QFileInfo& info, QFileAccessor& accessor); PlatformRef BINARYNINJAUIAPI getOrAskForPlatform(QWidget* parent, BinaryViewRef data); -- cgit v1.3.1