• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • HeaderProgressChip
  • HeaderProgressChip Class

    Shared header chip — bare icon at rest, slides open to reveal a progress bar when active or hovered. More...

    Header: #include <HeaderProgressChip>
    Inherits: QWidget
    Inherited By:

    batch::BatchStatusWidget and EntropyStatus

    Public Functions

    int barWidth() const
    void setBarWidth(int w)

    Detailed Description

    The chip owns the QProgressBar, the icon button, the slide animation, the bold-mono / pill-shape styling, and the hover-vs- activity expansion gate. Concrete data-source chips (the batch queue, the entropy accumulator) inherit this class, set their icon in the constructor, and push state via setProgressFormat / setProgressValue / setHasActivity. Click bubbles up via the inherited clicked() signal.

    Centralising the visual code path here is what stops the batch and entropy chips from drifting out of alignment (pill radius, width, colours, font, animation timing) when one side gets tweaked.