MCPcopy Create free account
hub / github.com/KDE/kdevelop / eventFilter

Method eventFilter

plugins/documentswitcher/documentswitcherplugin.cpp:230–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230bool DocumentSwitcherPlugin::eventFilter( QObject* watched, QEvent* ev )
231{
232 auto* mw = qobject_cast<Sublime::MainWindow*>(watched);
233 if( mw && ev->type() == QEvent::WindowActivate )
234 {
235 enableActions();
236 }
237 return QObject::eventFilter( watched, ev );
238}
239
240void DocumentSwitcherPlugin::enableActions()
241{

Callers

nothing calls this directly

Calls 2

eventFilterFunction · 0.50
typeMethod · 0.45

Tested by

no test coverage detected