| 1769 | } |
| 1770 | |
| 1771 | void 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 | |
| 1786 | void MainWindow::recordControlUpdate() { |
| 1787 | m_recording = false; |
nothing calls this directly
no outgoing calls
no test coverage detected