Loading...
Searching...
No Matches
Inheritance diagram for score::ExampleCard:

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 setDownloadSize (qint64 bytes)
 
void setThumbnailImage (const QImage &img)
 
void setInfo (const ProjectInfo::Info &info)
 
void setKeywords (const QString &k)
 Extra text the filter looks into, e.g. the category.
 
bool matches (const QStringList &words) const
 Every one of words is in the name, author, description, path or keywords.
 

Public Attributes

std::function< void(const QString &path, Qt::KeyboardModifiers mods)> onActivated
 Ctrl (Cmd on macOS): the file is opened itself; Alt: no web page.
 

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: