MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / screenshot

Method screenshot

gui/qt/mainwindow.cpp:1702–1709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1700}
1701
1702void 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
1711void MainWindow::lcdCopy() {
1712 QApplication::clipboard()->setImage(ui->lcd->getImage(), QClipboard::Clipboard);

Callers

nothing calls this directly

Calls 2

saveMethod · 0.80
getImageMethod · 0.80

Tested by

no test coverage detected