void Intro::paintEvent(QPaintEvent *) { tpos -= step; //qDebug() << st.size() << tsize.height() << height() << tpos; if(tpos < -tsize.height()) { emit introFinished(); return; } QPainter p(this); p.setPen(Qt::yellow); p.setFont(font); p.fillRect(0, 0, width(), height(), Qt::black); p.drawStaticText(50, tpos, st); }
void fluid_menu::aniSlide() { static int wait=5; if(pictureFlowWidget->currentSlide()<4&&wait==0) { introAni.setInterval(333); pictureFlowWidget->showNext(); } else { if(wait==0) { introAni.stop(); pictureFlowWidget->isIntroRunning=false; introFinished(); } else wait--; } }
void Armdorande::showIntro() { it = new Intro(f, this); layout()->addWidget(it); connect(it, SIGNAL(introFinished()), this, SLOT(handleIntroEnd())); }