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
--- 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);