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

Method focusInEvent

gui/browserWidgets/ntitleeditor.cpp:55–60  ·  view source on GitHub ↗

We now have focus. Change the appearance

Source from the content-addressed store, hash-verified

53
54// We now have focus. Change the appearance
55void NTitleEditor::focusInEvent(QFocusEvent *e)
56{
57 QLineEdit::focusInEvent(e);
58 setStyleSheet(activeColor);
59 emit(focussed(true));
60}
61
62
63// Focus is lost. Set the colors back and check for text changed

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected