MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / eventFilter

Method eventFilter

pj_plotting/widget/src/CurveEditor.cpp:504–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504bool CurveEditor::eventFilter(QObject* watched, QEvent* event) {
505 const QEvent::Type type = event->type();
506 if ((type == QEvent::FocusIn || type == QEvent::FocusOut) && watched == ui_->lineEditCurvesFilter) {
507 // Focus expands the filter into the label's space. Kebab stays
508 // visible — it never gets pushed out.
509 const bool focused = (type == QEvent::FocusIn);
510 ui_->labelCurves->setVisible(!focused);
511 }
512 return QWidget::eventFilter(watched, event);
513}
514
515void CurveEditor::resizeEvent(QResizeEvent* event) {
516 QWidget::resizeEvent(event);

Callers

nothing calls this directly

Calls 3

eventFilterFunction · 0.85
typeMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected