AddressRangeScrollBar

class AddressRangeScrollBar : public QScrollBar

Generic scrollbar class to be used by memory address based widgets (Disassembly, Hexdump etc)

Public Functions

AddressRangeScrollBar(QWidget *parent = nullptr)
void refreshRange()
void setPosition(RVA address)
RVA address()
RVA clampAddressToRange(RVA address) const
RVA rangeSize() const
void showTransientScrollBar()

Sends fake wheelEvent to the parent QScrollBar.

This allows external widgets (like side panels or text edits) to notify the scrollbar of wheel activity. It is needed for systems (like MacOS) which have the option to enable transient scrollbars meaning the ability to show the scrollbar only while scrolling and hiding it later (when using Cutter’s “Native” theme)

Signals

void hideScrollBar()
void showScrollBar()
void scrolled(int lines)