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

#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

 QCustomLabel (QWidget *parent=nullptr)
 
 QCustomLabel (const TranslatedString &text, QWidget *parent=nullptr)
 
 QCustomLabel (const QString &text, QWidget *parent=nullptr)
 
TranslatedString text () const
 
void paintEvent (QPaintEvent *e) override
 
QSize minimumSizeHint () const override
 
QSize sizeHint () const override
 
void setVertical (bool vertical)
 
void setFlipped (bool flipped)
 
void setFontMultiplier (fltp04 font_multiplier)
 
void setBold (bool is_bold)
 
void setText (const TranslatedString &text)
 
void setText (const QString &text)
 
void setText (const char *text)
 
void setText (const String &text)
 
void setLightingTheme (Theme theme)
 
bool event (QEvent *event) override
 

Static Public Attributes

static Resource< fltp08default_multiplier_desktop
 
static Resource< fltp08default_multiplier_touch
 

Protected Member Functions

void init ()
 
void updateFont ()
 

Protected Attributes

TranslatedString m_translated_text
 
fltp04 m_font_multiplier
 
Theme m_theme
 
bool m_is_vertical = false
 
bool m_is_flipped = false
 
bool m_is_bold = false
 

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 files: