Google Code-in: Center help text field
authorMitchell Kember <mk12360@gmail.com>
Fri, 30 Nov 2012 20:00:53 -0500 (2012-12-01)
changeset 8149 237802cf4610
parent 8147 53190e590919
child 8151 25b95d6224fc
Google Code-in: Center help text field Modifies the grid layout slightly so that the help text which appears when hovering over certain elements is centered with respect to the window, even when there are more buttons on one side. https://google-melange.appspot.com/gci/task/view/google/gci2012/7968226
QTfrontend/ui/page/AbstractPage.cpp
--- a/QTfrontend/ui/page/AbstractPage.cpp	Fri Nov 30 15:29:09 2012 -0500
+++ b/QTfrontend/ui/page/AbstractPage.cpp	Fri Nov 30 20:00:53 2012 -0500
@@ -41,8 +41,9 @@
     QGridLayout * pageLayout = new QGridLayout(this);
 
     // stretch grid space for body and footer
-    pageLayout->setColumnStretch(0,0);
-    pageLayout->setColumnStretch(1,1);
+    pageLayout->setColumnStretch(0,1);
+    pageLayout->setColumnStretch(1,2);
+    pageLayout->setColumnStretch(2,1);
     pageLayout->setRowStretch(0,1);
     pageLayout->setRowStretch(1,0);