MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / focusOutEvent

Method focusOutEvent

gui/lineedit.cpp:166–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void LineEdit::focusOutEvent(QFocusEvent *e)
167{
168 QLineEdit::focusOutEvent(e);
169 if (this->text().trimmed() == "") {
170 blockSignals(true);
171 setText(defaultText);
172 blockSignals(false);
173 setStyleSheet(inactiveColor);
174 }
175// this->setCursor(Qt::PointingHandCursor);
176
177}
178
179
180// Check if any value is set

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected