# HG changeset patch # User Mitchell Kember # Date 1354323653 18000 # Node ID 2c233349df21116f23938dec60504e217c3378fd # Parent 976f112e24a9fce539235366a19b0480cfef5a70 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 976f112e24a9 -r 2c233349df21 QTfrontend/ui/page/AbstractPage.cpp --- a/QTfrontend/ui/page/AbstractPage.cpp Sat Dec 01 21:10:15 2012 +0100 +++ 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);