Exemplo n.º 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();
     }
 }
Exemplo n.º 2
0
 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);
 }