37 QString color = (m_hover || !text().isEmpty() ? QString (
"white") : QString (
"#d3d3d3"));
38 QString style = QString (
"QLineEdit { background-color: %1; }").arg (color);
39 setStyleSheet (style);
log4cpp::Category * mainCat
~DlgEditPointGraphLineEdit()
void updateBackground()
Update background given the current state.
virtual void leaveEvent(QEvent *)
Hover exit triggers restoration of the background color.
virtual void enterEvent(QEvent *)
Hover entry triggers clearing of the background color so user does not think of widget as disabled an...
DlgEditPointGraphLineEdit(QWidget *widget=0)
Single constructor.
#define LOG4CPP_INFO_S(logger)