place better the current replay button
authorPeriklis Ntanasis <pntanasis@gmail.com>
Tue, 21 May 2013 21:28:42 +0300
changeset 9039 24e1ccd9326f
parent 9038 8c74d93e4e88
child 9040 282c7ef1822d
place better the current replay button
QTfrontend/ui/page/pagegamestats.cpp
QTfrontend/ui/page/pagegamestats.h
--- 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;
 }
--- 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;