improve Own Flipside handling

This commit is contained in:
doitux
2007-01-29 00:53:20 +00:00
parent 34fd8aceef
commit 262b18a747
5 changed files with 187 additions and 119 deletions
+9
View File
@@ -20,6 +20,8 @@ MyCardsPixmapLabel::MyCardsPixmapLabel(QFrame* parent)
frameOpacity = 0.0;
opacityRaiseIntervall = 0.01;
isFlipside = FALSE;
timer = new QTimer;
connect(timer, SIGNAL(timeout()), this, SLOT(nextFadeOutFrame()));
@@ -58,6 +60,13 @@ void MyCardsPixmapLabel::nextFadeOutFrame() {
}
void MyCardsPixmapLabel::setPixmap(const QPixmap &pic, const bool flipside) {
QLabel::setPixmap(pic);
isFlipside = flipside;
}
void MyCardsPixmapLabel::paintEvent(QPaintEvent * event) {
QLabel::paintEvent(event);