| 502 | } |
| 503 | |
| 504 | bool 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 | |
| 515 | void CurveEditor::resizeEvent(QResizeEvent* event) { |
| 516 | QWidget::resizeEvent(event); |
nothing calls this directly
no test coverage detected