Add export to animated GIF, wrt GH-9

This commit is contained in:
Gavin MacGregor
2025-01-08 23:23:14 +00:00
parent e2f794c658
commit cdfcdd8754
24 changed files with 5021 additions and 34 deletions

View File

@@ -140,13 +140,18 @@ void TeletextWidget::timerEvent(QTimerEvent *event)
QWidget::timerEvent(event);
}
void TeletextWidget::pauseFlash(bool pauseNow)
void TeletextWidget::pauseFlash(int p)
{
if (pauseNow && m_flashTiming != 0) {
if (m_flashTiming != 0) {
m_flashTimer.stop();
m_flashPhase = 0;
m_flashPhase = p;
update();
} else if (m_flashTiming != 0)
}
}
void TeletextWidget::resumeFlash()
{
if (m_flashTiming != 0)
m_flashTimer.start((m_flashTiming == 1) ? 500 : 167, this);
}