MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / eventFilter

Method eventFilter

src/widgets/QuickFindWidget.cpp:87–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87bool QuickFindWidget::eventFilter(QObject *obj, QEvent *event)
88{
89 if (event->type() == QEvent::KeyPress) {
90 QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
91
92 // Use escape key to close the quick find widget
93 if (keyEvent->key() == Qt::Key_Escape) {
94 clearHighlights();
95 clearCachedMatches();
96 hide();
97 editor->grabFocus();
98 }
99 }
100
101 return QObject::eventFilter(obj, event);
102}
103
104void QuickFindWidget::setSearchContextColorBad()
105{

Callers

nothing calls this directly

Calls 1

keyMethod · 0.80

Tested by

no test coverage detected