fix back button location in post-game stats screen
authorsheepluva
Thu, 15 Sep 2011 19:20:13 +0200
changeset 5916 c76212c34192
parent 5913 1791f776b726
child 5917 6c6ca1a36d56
fix back button location in post-game stats screen
QTfrontend/pagegamestats.cpp
--- a/QTfrontend/pagegamestats.cpp	Thu Sep 15 17:19:49 2011 +0200
+++ b/QTfrontend/pagegamestats.cpp	Thu Sep 15 19:20:13 2011 +0200
@@ -43,14 +43,16 @@
     pageLayout->setSpacing(20);
     pageLayout->setColumnStretch(0, 1);
     pageLayout->setColumnStretch(1, 1);
+    pageLayout->setContentsMargins(7, 7, 7, 0);
+
+    BtnSave = addButton(":/res/Save.png", pageLayout, 3, 2, true);
+    BtnSave->setStyleSheet("QPushButton{margin: 12px 0px 12px 0px;}");
+    connect(BtnSave, SIGNAL(clicked()), this, SIGNAL(saveDemoRequested()));
 
     BtnBack = addButton(":/res/Exit.png", pageLayout, 3, 0, true);
-    BtnBack->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
-
-    BtnSave = addButton(":/res/Save.png", pageLayout, 3, 2, true);
-    BtnSave->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
-    BtnSave->setStyleSheet("QPushButton{margin: 12px 0px 12px 0px;}");
-    connect(BtnSave, SIGNAL(clicked()), this, SIGNAL(saveDemoRequested()));
+    BtnBack->setFixedHeight(BtnSave->height());
+    BtnBack->setFixedWidth(BtnBack->width()+2);
+    BtnBack->setStyleSheet("QPushButton{margin: 22px 0 9px 2px;}");
 
     QGroupBox * gb = new QGroupBox(this);
     QVBoxLayout * gbl = new QVBoxLayout;