MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / onPlayClicked

Method onPlayClicked

src/app/ui/preview_editor.cpp:304–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304void PreviewEditorWindow::onPlayClicked()
305{
306 Editor* miniEditor = (m_docView ? m_docView->editor(): nullptr);
307 if (!miniEditor || !miniEditor->document())
308 return;
309
310 if (m_playButton->isPlaying()) {
311 m_refFrame = miniEditor->frame();
312 miniEditor->play(Preferences::instance().preview.playOnce());
313 }
314 else
315 miniEditor->stop();
316}
317
318void PreviewEditorWindow::onPopupSpeed()
319{

Callers

nothing calls this directly

Calls 7

instanceFunction · 0.85
playMethod · 0.80
editorMethod · 0.45
documentMethod · 0.45
isPlayingMethod · 0.45
frameMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected