51 #include "ColorStatusBar.hh" 53 ColorStatusBar::ColorStatusBar(QWidget* parent) : QStatusBar(parent)
55 connect (
this, SIGNAL(messageChanged(
const QString&)),
this, SLOT(slotMessageChanged(
const QString &)) );
59 void ColorStatusBar::showMessage(
const QString & message,
int timeout)
61 QStatusBar::showMessage(message, timeout);
64 void ColorStatusBar::showMessage(
const QString & message, QColor _color,
int timeout)
66 QPalette pal = palette();
67 pal.setColor(QPalette::Active, QPalette::WindowText, _color );
72 QStatusBar::showMessage(message, timeout);
75 void ColorStatusBar::slotMessageChanged(
const QString & )
79 QPalette pal = palette();
80 pal.setColor(QPalette::Active, QPalette::WindowText, QColor(Qt::black) );