void AuxPokeDataProxy::onSendOut(ShallowBattlePoke *shallow) { if (playerPoke) { this->poke->adaptTo(shallow); } setShowing(true); setSubstitute(false); setAlternateSprite(Pokemon::NoPoke); setOnTheField(true); }
//--------------------------------------------------------------------------- myProgressDialog::myProgressDialog(QString title) { setWindowTitle(title); filename = new QLabel(tr("Initializing...")); bar = new QProgressBar(); button = new QPushButton("Cancel"); //transfer info label transferInfo = new QLabel(); transferInfo->setText(QString("<p><br></p>")); //remaining time timer remainingTimer = new QTime(); oldSeconds = 0; runningTotal = 0; bar->setRange(0,100); filename->setFixedWidth(300); bar->setFixedWidth(300); bar->setAlignment(Qt::AlignHCenter); connect(button, SIGNAL(clicked()), this, SLOT(accept())); QGridLayout *layout = new QGridLayout(); layout->addWidget(filename,1,1,1,4); layout->addWidget(bar,2,1,1,4); layout->addWidget(transferInfo,3,1,1,1,Qt::AlignBottom); layout->addWidget(button,3,4,1,1,Qt::AlignBottom); setLayout(layout); //start the timer remainingTimer->start(); QTimer::singleShot(1000, this, SLOT(setShowing())); }