1 // File: ModuleBase_Tools.cpp
2 // Created: 11 July 2014
3 // Author: Vitaly Smetannikov
5 #include "ModuleBase_Tools.h"
6 #include <ModelAPI_ResultBody.h>
7 #include <ModelAPI_ResultConstruction.h>
8 #include <ModelAPI_Document.h>
10 namespace ModuleBase_Tools {
12 //******************************************************************
14 //******************************************************************
16 void adjustMargins(QWidget* theWidget)
20 adjustMargins(theWidget->layout());
23 void adjustMargins(QLayout* theLayout)
27 theLayout->setContentsMargins(5, 5, 5, 5);
28 theLayout->setSpacing(5);
31 void zeroMargins(QWidget* theWidget)
35 zeroMargins(theWidget->layout());
38 void zeroMargins(QLayout* theLayout)
42 theLayout->setContentsMargins(0, 0, 0, 0);
43 theLayout->setSpacing(5);