Example #1
0
 protected function resizeEvent(QResizeEvent $event)
 {
     Q_UNUSED($event);
     $scaledSize = $this->originalPixmap->size();
     $scaledSize->scale($this->screenshotLabel->size(), Qt::KeepAspectRatio);
     if (!$this->screenshotLabel->pixmap() || $scaledSize != $this->screenshotLabel->pixmap()->size()) {
         $this->updateScreenshotLabel();
     }
 }