# HG changeset patch # User Periklis Ntanasis # Date 1369160922 -10800 # Node ID 24e1ccd9326f33e7b2a332050179db79586a6495 # Parent 8c74d93e4e881a0977ccff798460f44f434e6c07 place better the current replay button diff -r 8c74d93e4e88 -r 24e1ccd9326f QTfrontend/ui/page/pagegamestats.cpp --- a/QTfrontend/ui/page/pagegamestats.cpp Tue May 21 23:15:44 2013 +0200 +++ b/QTfrontend/ui/page/pagegamestats.cpp Tue May 21 21:28:42 2013 +0300 @@ -101,11 +101,22 @@ QLayout * PageGameStats::footerLayoutDefinition() { QHBoxLayout * bottomLayout = new QHBoxLayout(); + + mainNote = new QLabel(this); + mainNote->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter); + mainNote->setWordWrap(true); + + bottomLayout->addWidget(mainNote, 0); + bottomLayout->setStretch(0,1); - btnRestart = addButton(":/res/Start.png", bottomLayout, 0, true); - btnSave = addButton(":/res/Save.png", bottomLayout, 0, true); + btnRestart = addButton(":/res/Start.png", bottomLayout, 1, true); + btnRestart->setWhatsThis(tr("Play again")); + btnRestart->setFixedWidth(58); + btnRestart->setFixedHeight(81); + btnRestart->setStyleSheet("QPushButton{margin-top:24px}"); + btnSave = addButton(":/res/Save.png", bottomLayout, 2, true); + btnSave->setWhatsThis(tr("Save")); btnSave->setStyleSheet("QPushButton{margin: 24px 0 0 0;}"); - bottomLayout->setAlignment(btnSave, Qt::AlignRight | Qt::AlignBottom); return bottomLayout; } diff -r 8c74d93e4e88 -r 24e1ccd9326f QTfrontend/ui/page/pagegamestats.h --- a/QTfrontend/ui/page/pagegamestats.h Tue May 21 23:15:44 2013 +0200 +++ b/QTfrontend/ui/page/pagegamestats.h Tue May 21 21:28:42 2013 +0300 @@ -45,6 +45,7 @@ QPushButton *btnSave; QPushButton *btnRestart; + QLabel *mainNote; QLabel *labelGameStats; QLabel *labelGameWin; QLabel *labelGameRank;