adjust gui functions for new show cards procedures

This commit is contained in:
doitux
2010-07-22 12:12:57 +00:00
parent aae32164ff
commit dd337c4da0
4 changed files with 48 additions and 49 deletions
+5 -1
View File
@@ -77,6 +77,7 @@ void MyCardsPixmapLabel::nextFadeOutFrame() {
void MyCardsPixmapLabel::startFlipCards(int speed, const QPixmap &frontPix, const QPixmap &flipsidePix) {
stopFlipCards = FALSE;
isFlipside = FALSE;
QLabel::setPixmap(frontPix);
@@ -156,7 +157,10 @@ void MyCardsPixmapLabel::paintEvent(QPaintEvent * event) {
if (fadeOutAction && !fastFlipCardsFront) {
QPainter painter(this);
painter.setOpacity(frameOpacity);
painter.drawPixmap(0,0, front);
if(isFlipside)
painter.drawPixmap(0,0, flipside);
else
painter.drawPixmap(0,0, front);
}
if (flipCardsAction1) {