36 setAttribute( Qt::WA_OpaquePaintEvent );
42 float fAspectRatio =
static_cast<float>( size.width() ) /
static_cast<float>( size.height() );
43 if ( fAspectRatio < 1 ) {
50 if ( file.exists() ) {
54 ERRORLOG( QString(
"Unable to load background image [%1]" ).arg( sPath ) );
70 QPainter painter(
this );
85 :
LED( pParent, size )
95 if ( file.exists() ) {
99 ERRORLOG( QString(
"Unable to load background image [%1]" ).arg( sPath ) );
135 QPainter painter(
this );
static Preferences * get_instance()
Returns a pointer to the current Preferences singleton stored in __instance.
void addEventListener(EventListener *pListener)
static HydrogenApp * get_instance()
Returns the instance of HydrogenApp class.
LED(QWidget *pParent, QSize size)
void setActivated(bool bActivated)
QSvgRenderer * m_background
virtual void paintEvent(QPaintEvent *ev) override
std::chrono::milliseconds m_activityTimeout
virtual void metronomeEvent(int nValue) override
MetronomeLED(QWidget *pParent, QSize size)
virtual void paintEvent(QPaintEvent *ev) override
static QString getSvgImagePath()