7 #include "DlgEditPointGraphLineEdit.h" 15 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgEditPointGraphLineEdit::DlgEditPointGraphLineEdit";
18 DlgEditPointGraphLineEdit::~DlgEditPointGraphLineEdit()
20 LOG4CPP_INFO_S ((*mainCat)) <<
"DlgEditPointGraphLineEdit::~DlgEditPointGraphLineEdit";
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.
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.