API Documentation
Loading...
Searching...
No Matches
QCustomLabel Class Reference

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>

Inheritance diagram for QCustomLabel:
[legend]
Collaboration diagram for QCustomLabel:
[legend]

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< fltp08default_multiplier_desktop
 
static Resource< fltp08default_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
 

Detailed Description

Displays translated text. No user interaction functionality is provided. The visual appearance of the label can be configured in various ways.


Member Enumeration Documentation

◆ Theme

enum Theme
Enumerator
e_header_a 
e_header_b 
e_label_a 

Constructor & Destructor Documentation

◆ QCustomLabel() [1/3]

QCustomLabel ( QWidget * parent = nullptr)

◆ QCustomLabel() [2/3]

QCustomLabel ( const TranslatedString & text,
QWidget * parent = nullptr )

◆ QCustomLabel() [3/3]

QCustomLabel ( const QString & text,
QWidget * parent = nullptr )

Member Function Documentation

◆ event()

bool event ( QEvent * event)
override

◆ init()

void init ( )
protected

◆ minimumSizeHint()

QSize minimumSizeHint ( ) const
override

◆ paintEvent()

void paintEvent ( QPaintEvent * e)
override

◆ setBold()

void setBold ( bool is_bold)

◆ setFlipped()

void setFlipped ( bool flipped)

◆ setFontMultiplier()

void setFontMultiplier ( fltp04 font_multiplier)

◆ setLightingTheme()

void setLightingTheme ( Theme theme)

◆ setText() [1/4]

void setText ( const char * text)

◆ setText() [2/4]

void setText ( const QString & text)

◆ setText() [3/4]

void setText ( const String & text)

◆ setText() [4/4]

void setText ( const TranslatedString & text)

◆ setVertical()

void setVertical ( bool vertical)

◆ sizeHint()

QSize sizeHint ( ) const
override

◆ text()

TranslatedString text ( ) const

◆ updateFont()

void updateFont ( )
protected

Member Data Documentation

◆ default_multiplier_desktop

Resource<fltp08> default_multiplier_desktop
static

◆ default_multiplier_touch

Resource<fltp08> default_multiplier_touch
static

◆ m_font_multiplier

fltp04 m_font_multiplier
protected

◆ m_is_bold

bool m_is_bold = false
protected

◆ m_is_flipped

bool m_is_flipped = false
protected

◆ m_is_vertical

bool m_is_vertical = false
protected

◆ m_theme

Theme m_theme
protected

◆ m_translated_text

TranslatedString m_translated_text
protected

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