A clickable label with an optional icon and a hover state.
More...
A clickable label with an optional icon and a hover state.
Used for every actionable entry of the start screen: either it opens an external URL, or it emits labelPressed(url) for the StartScreen to act upon. When made checkable it also serves as a navigation tab.
|
|
| InteractiveLabel (const QFont &font, const QString &text, const QString &url, QWidget *parent=nullptr) |
| |
|
void | setOpenExternalLink (bool val) |
| |
|
void | setPixmaps (const QPixmap &pixmap, const QPixmap &pixmapOn) |
| |
|
void | disableInteractivity () |
| |
|
void | setActiveColor (const QColor &c) |
| |
|
void | setInactiveColor (const QColor &c) |
| |
|
void | setElideMode (Qt::TextElideMode mode) |
| |
|
void | setLeftPadding (int px) |
| |
|
void | setIconColumn (int px) |
| | Width reserved for the icon, so that texts align whatever the icon size.
|
| |
|
void | setItemHeight (int px) |
| |
|
void | setCheckable (bool b) |
| |
|
void | setCheckedBackground (const QColor &c) |
| |
|
void | setChecked (bool b) |
| |
|
bool | isChecked () const noexcept |
| |
|
void | setText (const QString &text) |
| |
|
const QString & | text () const noexcept |
| |
|
const QString & | url () const noexcept |
| |
|
void | labelPressed (const QString &file) |
| |
|
void | hovered (bool state) |
| |
|
QSize | sizeHint () const override |
| |
|
QSize | minimumSizeHint () const override |
| |
|
|
void | paintEvent (QPaintEvent *event) override |
| |
|
void | enterEvent (QEnterEvent *event) override |
| |
|
void | leaveEvent (QEvent *event) override |
| |
|
void | mousePressEvent (QMouseEvent *event) override |
| |
|
void | mouseReleaseEvent (QMouseEvent *event) override |
| |
The documentation for this class was generated from the following file: