animation bugfix when show cards during fade-out animation
This commit is contained in:
1 parent
6a206c0669
commit
413e32f916
3 files changed
+19
-7
No files matched your search
@@ -59,6 +59,15 @@ void MyCardsPixmapLabel::startFadeOut(int speed) {
|
||||
|
||||
}
|
||||
|
||||
void MyCardsPixmapLabel::stopFadeOut() {
|
||||
|
||||
fadeOutTimer->stop();
|
||||
fadeOutAction = FALSE;
|
||||
frameOpacity = 1.0;
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
|
||||
void MyCardsPixmapLabel::nextFadeOutFrame() {
|
||||
|
||||
@@ -76,6 +85,8 @@ void MyCardsPixmapLabel::nextFadeOutFrame() {
|
||||
|
||||
void MyCardsPixmapLabel::startFlipCards(int speed, const QPixmap &frontPix, const QPixmap &flipsidePix) {
|
||||
|
||||
stopFadeOut();
|
||||
|
||||
stopFlipCards = FALSE;
|
||||
isFlipside = FALSE;
|
||||
|
||||
|
||||
Reference in new issue
Block a user