Loading...
Searching...
No Matches

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

Inheritance diagram for score::ExampleCard:

Detailed Description

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

Public Member Functions

 ExampleCard (const QFont &titleFont, const QFont &subFont, const QString &title, const QString &subtitle, const QString &path, QWidget *parent)
 
const QString & path () const noexcept
 
void setInfo (const ProjectInfo::Info &info)
 

Public Attributes

std::function< void(const QString &)> onActivated
 

Static Public Attributes

static constexpr int Width = 190
 
static constexpr int ThumbHeight = 119
 
static constexpr int Height = ThumbHeight + 66
 

Protected Member Functions

void paintEvent (QPaintEvent *) override
 
void enterEvent (QEnterEvent *) override
 
void leaveEvent (QEvent *) override
 
void mousePressEvent (QMouseEvent *e) override
 
void mouseReleaseEvent (QMouseEvent *e) override
 

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