38 setAutoFillBackground(
true );
53 setStyleSheet( QString(
"background: %1;" ).arg( pPref->getColorTheme()->m_highlightColor.name() ) );
65 m_pLayout->setContentsMargins( 2, 2, 2, 2 );
72 QLabel *icon =
new QLabel();
85 font.setPointSize( 11 );
92 QPushButton *close =
new QPushButton();
93 QIcon closeIcon = style()->standardIcon( QStyle::SP_TitleBarCloseButton );
94 close->setIcon( closeIcon );
95 close->setFlat(
true );
98 QObject::connect(close, SIGNAL(clicked()),
this, SLOT(hide()));
118 auto html = QString(
"<html><b>%1</b><br/>%2</html>").arg(
m_sTitle).arg(
m_sText);
125 QPushButton *button =
new QPushButton();
126 button->setText( label );
static Preferences * get_instance()
Returns a pointer to the current Preferences singleton stored in __instance.
Changes
Bitwise or-able options showing which part of the Preferences were altered using the PreferencesDialo...
@ Colors
At least one of the colors has changed.
static HydrogenApp * get_instance()
Returns the instance of HydrogenApp class.
void preferencesChanged(H2Core::Preferences::Changes changes)
Propagates a change in the Preferences through the GUI.
void setText(const QString &text)
InfoBar(QWidget *parent=Q_NULLPTR)
void onPreferencesChanged(H2Core::Preferences::Changes changes)
QPushButton * addButton(const QString &label)
std::vector< QPushButton * > m_buttons
void setTitle(const QString &text)
static QString getImagePath()