feat: animation pause and manually step to next frame

Resolve: https://github.com/BLumia/pineapple-pictures/issues/85
This commit is contained in:
2024-11-06 20:28:39 +08:00
parent a993437983
commit 42e3d4c691
6 changed files with 59 additions and 1 deletions

View File

@ -21,10 +21,13 @@ public:
bool trySetTransformationMode(Qt::TransformationMode mode, float scaleHint);
bool togglePauseAnimation();
bool skipAnimationFrame(int delta = 1);
QPixmap renderToPixmap();
private:
QGraphicsItem * m_theThing;
QGraphicsItem * m_theThing = nullptr;
};
#endif // GRAPHICSSCENE_H