34#include <NDEVR/BaseValues.h>
35#include <NDEVR/Resource.h>
36#include <NDEVR/TranslatedString.h>
52 QCustomLabel(
const QString& text, QWidget* parent =
nullptr);
54 void paintEvent(QPaintEvent* e)
override;
55 QSize minimumSizeHint()
const override;
56 QSize sizeHint()
const override;
57 void setVertical(
bool vertical);
58 void setFlipped(
bool flipped);
59 void setFontMultiplier(
fltp04 font_multiplier);
60 void setBold(
bool is_bold);
62 void setText(
const QString& text);
63 void setText(
const char* text);
64 void setText(
const String& text);
65 void setLightingTheme(Theme theme);
66 bool event(QEvent* event)
override;
76 bool m_is_vertical =
false;
77 bool m_is_flipped =
false;
78 bool m_is_bold =
false;
Definition QCustomLabel.h:42
Theme m_theme
Definition QCustomLabel.h:75
static Resource< fltp08 > default_multiplier_desktop
Definition QCustomLabel.h:67
fltp04 m_font_multiplier
Definition QCustomLabel.h:74
TranslatedString m_translated_text
Definition QCustomLabel.h:73
Theme
Definition QCustomLabel.h:45
static Resource< fltp08 > default_multiplier_touch
Definition QCustomLabel.h:68
Definition TranslatedString.h:9
float fltp04
Defines an alias representing a 4 byte floating-point number.
Definition BaseValues.hpp:157