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

Method recordSave

gui/qt/mainwindow.cpp:1771–1784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1769}
1770
1771void MainWindow::recordSave(const QString &filename) {
1772 ui->apngSkip->setEnabled(false);
1773 ui->actionRecordAnimated->setEnabled(false);
1774 ui->buttonRecordAnimated->setEnabled(false);
1775 ui->buttonRecordAnimated->setText(tr("Saving..."));
1776 ui->actionRecordAnimated->setText(tr("Saving Animated PNG..."));
1777
1778 RecordingThread *thread = new RecordingThread();
1779 connect(thread, &RecordingThread::done, this, &MainWindow::recordControlUpdate);
1780 connect(thread, &RecordingThread::finished, thread, &QObject::deleteLater);
1781 thread->m_filename = filename;
1782 thread->m_optimize = m_optimizeRecording;
1783 thread->start();
1784}
1785
1786void MainWindow::recordControlUpdate() {
1787 m_recording = false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected