| 1700 | } |
| 1701 | |
| 1702 | void MainWindow::screenshot() { |
| 1703 | QString path = QDir::tempPath() + QDir::separator() + QStringLiteral("cemu_tmp.img"); |
| 1704 | if (!ui->lcd->getImage().save(path, "PNG", 0)) { |
| 1705 | QMessageBox::critical(this, MSG_ERROR, tr("Failed to save screenshot.")); |
| 1706 | } |
| 1707 | |
| 1708 | screenshotSave(tr("PNG images (*.png)"), QStringLiteral("png"), path); |
| 1709 | } |
| 1710 | |
| 1711 | void MainWindow::lcdCopy() { |
| 1712 | QApplication::clipboard()->setImage(ui->lcd->getImage(), QClipboard::Clipboard); |