API Documentation
|
Displays translated text. No user interaction functionality is provided. The visual appearance of the label can be configured in various ways. More...
#include <QCustomLabel.h>
Public Types | |
enum | Theme { e_header_a , e_header_b , e_label_a } |
Public Member Functions | |
bool | event (QEvent *event) override |
QSize | minimumSizeHint () const override |
void | paintEvent (QPaintEvent *e) override |
QCustomLabel (const QString &text, QWidget *parent=nullptr) | |
QCustomLabel (const TranslatedString &text, QWidget *parent=nullptr) | |
QCustomLabel (QWidget *parent=nullptr) | |
void | setBold (bool is_bold) |
void | setFlipped (bool flipped) |
void | setFontMultiplier (fltp04 font_multiplier) |
void | setLightingTheme (Theme theme) |
void | setText (const char *text) |
void | setText (const QString &text) |
void | setText (const String &text) |
void | setText (const TranslatedString &text) |
void | setVertical (bool vertical) |
QSize | sizeHint () const override |
TranslatedString | text () const |
Static Public Attributes | |
static Resource< fltp08 > | default_multiplier_desktop |
static Resource< fltp08 > | default_multiplier_touch |
Protected Member Functions | |
void | init () |
void | updateFont () |
Protected Attributes | |
fltp04 | m_font_multiplier |
bool | m_is_bold = false |
bool | m_is_flipped = false |
bool | m_is_vertical = false |
Theme | m_theme |
TranslatedString | m_translated_text |
Displays translated text. No user interaction functionality is provided. The visual appearance of the label can be configured in various ways.
enum Theme |
QCustomLabel | ( | QWidget * | parent = nullptr | ) |
QCustomLabel | ( | const TranslatedString & | text, |
QWidget * | parent = nullptr ) |
QCustomLabel | ( | const QString & | text, |
QWidget * | parent = nullptr ) |
|
override |
|
protected |
|
override |
|
override |
void setBold | ( | bool | is_bold | ) |
void setFlipped | ( | bool | flipped | ) |
void setFontMultiplier | ( | fltp04 | font_multiplier | ) |
void setLightingTheme | ( | Theme | theme | ) |
void setText | ( | const char * | text | ) |
void setText | ( | const QString & | text | ) |
void setText | ( | const String & | text | ) |
void setText | ( | const TranslatedString & | text | ) |
void setVertical | ( | bool | vertical | ) |
|
override |
TranslatedString text | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |