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

Method eventFilter

kdevplatform/shell/progresswidget/statusbarprogresswidget.cpp:317–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317bool StatusbarProgressWidget::eventFilter(QObject* object, QEvent* ev)
318{
319 if ( ev->type() == QEvent::MouseButtonPress ) {
320 auto* e = static_cast<QMouseEvent*>(ev);
321
322 if ( e->button() == Qt::LeftButton && mode != None ) { // toggle view on left mouse button
323 // Consensus seems to be that we should show/hide the fancy dialog when the user
324 // clicks anywhere in the small one.
325 mProgressDialog->slotToggleVisibility();
326 return true;
327 }
328 }
329 return QFrame::eventFilter(object, ev);
330}
331
332void StatusbarProgressWidget::slotProgressDialogVisible( bool b )
333{

Callers

nothing calls this directly

Calls 4

buttonMethod · 0.80
slotToggleVisibilityMethod · 0.80
eventFilterFunction · 0.50
typeMethod · 0.45

Tested by

no test coverage detected