Loading...
Searching...
No Matches

A score presented as a card: thumbnail, name, author. More...

Inheritance diagram for score::CategoryDrawer:

Detailed Description

A score presented as a card: thumbnail, name, author.

A titled section that folds its content away. Its title sits on a band that runs from the left edge of its content to the right edge of the list: a section's band is tinted and edged with the accent colour, a subsection's is fainter. Every row of the list, band or cards, is Gap below the previous one; a subsection steps Step to the right of its section, and the cards of a band start at its left edge.

Public Member Functions

 CategoryDrawer (const QFont &font, const QString &title, int count, int depth, QWidget *parent)
 
QVBoxLayout * body () const noexcept
 
QWidget * header () const noexcept
 
bool expanded () const noexcept
 
void setExpanded (bool e)
 
void setCount (int c)
 

Static Public Attributes

static constexpr int BandHeight = 24
 
static constexpr int Gap = 8
 Vertical space between two rows of the list.
 
static constexpr int Step = 16
 How far a subsection steps right of its section.
 

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *ev) override
 

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