| 315 | } |
| 316 | |
| 317 | bool 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 | |
| 332 | void StatusbarProgressWidget::slotProgressDialogVisible( bool b ) |
| 333 | { |
nothing calls this directly
no test coverage detected