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(); } }
public function retranslateUi($Dialog) { $Dialog->setWindowTitle(QApplication::translate("Dialog", "Dialog", 0, QApplication::UnicodeUTF8)); $buttonBox = $this->buttonBox; // scope $textBrowser = $this->textBrowser; // scope $lineEdit = $this->lineEdit; // scope Q_UNUSED($Dialog); }