examples/multimedia/videowidget/videowidget.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    82 //! [3]
    82 //! [3]
    83 void VideoWidget::paintEvent(QPaintEvent *event)
    83 void VideoWidget::paintEvent(QPaintEvent *event)
    84 {
    84 {
    85     QPainter painter(this);
    85     QPainter painter(this);
    86 
    86 
    87     if (surface->isStarted()) {
    87     if (surface->isActive()) {
    88         const QRect videoRect = surface->videoRect();
    88         const QRect videoRect = surface->videoRect();
    89 
    89 
    90         if (!videoRect.contains(event->rect())) {
    90         if (!videoRect.contains(event->rect())) {
    91             QRegion region = event->region();
    91             QRegion region = event->region();
    92             region.subtract(videoRect);
    92             region.subtract(videoRect);