BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
LayoutUtils.h File Reference

Description

Defines namespace GUI::Util::Layout.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file LayoutUtils.h.

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 GUI
 
 GUI::Util
 
 GUI::Util::Layout
 Utility functions to add/remove widgets to the layout on the fly. Taken from https://stackoverflow.com/questions/5395266/removing-widgets-from-qgridlayout.
 

Functions

void GUI::Util::Layout::clearGridLayout (QGridLayout *layout, bool deleteWidgets=true)
 Clear layout completely. More...
 
void GUI::Util::Layout::clearLayout (QLayout *layout, bool deleteWidgets=true)
 Removes content from box layout. More...
 
QWidget * GUI::Util::Layout::placeHolder ()
 Returns empty widget to occupy place in layout. More...
 
void GUI::Util::Layout::removeColumn (QGridLayout *layout, int column, bool deleteWidgets=true)
 Removes column from grid layout. More...
 
void GUI::Util::Layout::removeRow (QGridLayout *layout, int row, bool deleteWidgets=true)
 Removes row from grid layout (important: doesn't change row count). More...