# HG changeset patch # User Mitchell Kember # Date 1354323653 18000 # Node ID 237802cf4610128af42041eb2d054d07f04d37fa # Parent 53190e59091924046bcbce36c1fd52b38705872b 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 diff -r 53190e590919 -r 237802cf4610 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);