/** * @slot */ public function shootScreen() { if ($this->delaySpinBox->value() != 0) { QCoreApplication::instance()->beep(); } $this->originalPixmap = QPixmap::grabWindow(QCoreApplication::instance()->desktop()->winId()); $this->updateScreenshotLabel(); $this->newScreenshotButton->setDisabled(false); if ($this->hideThisWindowCheckBox->isChecked()) { $this->show(); } }