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