@@ -32,7 +32,7 @@ MSControlWidget::MSControlWidget(const MScope::ControlDefinition &ctlDef, QWidge
32
32
m_controlId = ctlDef.id ;
33
33
34
34
const auto layout = new QVBoxLayout (this );
35
- layout->setMargin ( 2 );
35
+ layout->setContentsMargins ( 2 , 2 , 2 , 2 );
36
36
layout->setSpacing (2 );
37
37
38
38
auto lblTitle = new QLabel (this );
@@ -44,7 +44,7 @@ MSControlWidget::MSControlWidget(const MScope::ControlDefinition &ctlDef, QWidge
44
44
const auto selLayout = new QGridLayout (sc);
45
45
const auto valuesCount = ctlDef.labels .length ();
46
46
m_slider = new QSlider (Qt::Horizontal, sc);
47
- selLayout->setMargin ( 0 );
47
+ selLayout->setContentsMargins ( 0 , 0 , 0 , 0 );
48
48
selLayout->setSpacing (2 );
49
49
50
50
m_slider->setRange (ctlDef.valueMin , ctlDef.valueMax );
@@ -68,7 +68,7 @@ MSControlWidget::MSControlWidget(const MScope::ControlDefinition &ctlDef, QWidge
68
68
} else {
69
69
const auto slw = new QWidget (this );
70
70
auto slLayout = new QHBoxLayout (slw);
71
- slLayout->setMargin ( 0 );
71
+ slLayout->setContentsMargins ( 0 , 0 , 0 , 0 );
72
72
slLayout->setSpacing (2 );
73
73
74
74
m_slider = new QSlider (Qt::Horizontal, slw);
0 commit comments