if(o == w) { if(e->type() == QEvent::Paint) { if(paintEnabled) { View->OnPaint(); qDebug(tr("paint event %1").arg(paint++).toAscii()); } return false; } else if(e->type() == QEvent::Move) { if(paintEnabled) { View->OnPaint(); qDebug(tr("move event %1").arg(move++).toAscii()); } return false; } else if(e->type() == QEvent::Resize) { if(paintEnabled) { View->OnPaint(); qDebug(tr("resize event %1").arg(resize++).toAscii()); } return false; } else { return QWidget::eventFilter(o, e); } } else { return QWidget::eventFilter(o, e); }
return QObject::eventFilter( o, e );
return QWidget::eventFilter( o, e );