| 228 | } |
| 229 | |
| 230 | bool 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 | |
| 240 | void DocumentSwitcherPlugin::enableActions() |
| 241 | { |
nothing calls this directly
no test coverage detected