1 // File: ModuleBase_Tools.cpp
2 // Created: 11 July 2014
3 // Author: Vitaly Smetannikov
5 #include "ModuleBase_Tools.h"
9 namespace ModuleBase_Tools {
11 //******************************************************************
13 //******************************************************************
15 void adjustMargins(QWidget* theWidget)
19 adjustMargins(theWidget->layout());
22 void adjustMargins(QLayout* theLayout)
26 theLayout->setContentsMargins(2, 5, 5, 2);
27 theLayout->setSpacing(4);
30 void zeroMargins(QWidget* theWidget)
34 zeroMargins(theWidget->layout());
37 void zeroMargins(QLayout* theLayout)
41 theLayout->setContentsMargins(0, 0, 0, 0);
42 theLayout->setSpacing(5);