adjust gui functions for new show cards procedures

This commit is contained in:
doitux committed 2010-07-22 12:12:57 +00:00
1 parent aae32164ff
commit dd337c4da0
4 files changed
+48 -49

No files matched your search

+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) {