Loading...
Searching...
No Matches

Detailed Description

The +/- strip on the right of a combo box or an int spinbox: the upper half steps up, the lower half down. In a box too short for two halves one above the other, they sit side by side, - then +.

Static Public Member Functions

static bool sideBySide (const QRectF &box) noexcept
 
static double stripWidth (const QRectF &box) noexcept
 Width of the strip in that box.
 
static bool visible (const QRectF &box) noexcept
 Shown only when the box leaves room for its content next to it.
 
static QRectF rect (const QRectF &box) noexcept
 
static QRectF half (const QRectF &box, int step) noexcept
 The half that steps by step: +1 or -1.
 
static int stepAt (const QRectF &box, QPointF pos) noexcept
 +1 or -1 for the half under pos, 0 outside the strip.
 
static void paint (QPainter &painter, const score::Skin &skin, const QRectF &box, int pressedStep)
 pressedStep: the half held down (0 for none) while the pointer is on it.
 

Static Public Attributes

static constexpr double width = 12.
 
static constexpr double min_stacked_height = 18.
 Below this height the halves sit side by side.
 

The documentation for this struct was generated from the following file: