improve Own Flipside handling
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user