equal
deleted
inserted
replaced
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); |