Exemplo n.º 1
0
EndGameScreen::EndGameScreen(QWidget *parent) :
    QWidget(parent)
{

    setFixedSize(640,360);
    scoreValue = new QLabel("XXXX", this);
    //scoreValue->setFixedWidth(500);
    scoreValue->setFont(QFont("LetterOMatic!", 20));
    scoreValue->move(640/2-scoreValue->width(),100);
    resultLabel = new QLabel(tr("Victoire !"), this);
    resultLabel->setFont(QFont("LetterOMatic!", 30));
    resultLabel->move(640/2-resultLabel->width(),10);




    btnHome = new EndGameButton(tr("Retour aux menus"), this);
    btnHome->setFont(QFont("LetterOMatic!", 12));
    btnHome->setGeometry(340,200,250,125);
    btnRetry = new EndGameButton(tr("Reessayer"), this);
    btnRetry->setFont(QFont("LetterOMatic!", 12));
    btnRetry->setGeometry(50,200,250,125);

    connect(btnHome,SIGNAL(clicked()),this,SIGNAL(homeSignal()));
    connect(btnRetry,SIGNAL(clicked()),this,SIGNAL(retrySignal()));
    bg = new QPixmap(":/menu/ressources/img/menu/endgamebackground.png");

}
Exemplo n.º 2
0
void OptionsView::homeSlot()
{
    emit homeSignal();
}