hydrogen 1.1.1
InfoBar Class Reference

#include <InfoBar.h>

Inheritance diagram for InfoBar:

Public Member Functions

 InfoBar (QWidget *parent=Q_NULLPTR)
 
void setTitle (const QString &text)
 
void setText (const QString &text)
 
QPushButton * addButton (const QString &label)
 
void reset ()
 

Private Member Functions

void setBackgroundColor ()
 
void createLayout ()
 
void createIcon ()
 
void createLabel ()
 
void createCloseButton ()
 
void updateText ()
 

Private Attributes

QHBoxLayout * m_pLayout
 
QLabel * m_pLabel
 
QString m_sTitle
 
QString m_sText
 
std::vector< QPushButton * > m_buttons
 

Constructor & Destructor Documentation

◆ InfoBar()

InfoBar ( QWidget *  parent = Q_NULLPTR)

Member Function Documentation

◆ addButton()

QPushButton * addButton ( const QString &  label)

◆ createCloseButton()

void createCloseButton ( )
private

◆ createIcon()

void createIcon ( )
private

◆ createLabel()

void createLabel ( )
private

◆ createLayout()

void createLayout ( )
private

◆ reset()

void reset ( )

◆ setBackgroundColor()

void setBackgroundColor ( )
private

◆ setText()

void setText ( const QString &  text)

◆ setTitle()

void setTitle ( const QString &  text)

◆ updateText()

void updateText ( )
private

Field Documentation

◆ m_buttons

std::vector<QPushButton *> m_buttons
private

◆ m_pLabel

QLabel* m_pLabel
private

◆ m_pLayout

QHBoxLayout* m_pLayout
private

◆ m_sText

QString m_sText
private

◆ m_sTitle

QString m_sTitle
private