Explorar o código

ENH: WorkflowWidget - ContentMargins associated with clientArea and stepArea are set to zero

Jean-Christophe Fillion-Robin %!s(int64=14) %!d(string=hai) anos
pai
achega
cdeef05082
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Libs/Widgets/ctkWorkflowWidget.cpp

+ 3 - 0
Libs/Widgets/ctkWorkflowWidget.cpp

@@ -136,6 +136,7 @@ ctkWorkflowWidget::ctkWorkflowWidget(QWidget* _parent) : Superclass(_parent)
 
 
   // layout components vertically by default
   // layout components vertically by default
   QBoxLayout* layout = new QBoxLayout(d->direction);
   QBoxLayout* layout = new QBoxLayout(d->direction);
+  layout->setContentsMargins(0, 0, 0, 0);
   this->setLayout(layout);
   this->setLayout(layout);
   layout->addWidget(d->titleSection);
   layout->addWidget(d->titleSection);
   layout->addWidget(d->subTitleSection);
   layout->addWidget(d->subTitleSection);
@@ -240,6 +241,7 @@ QWidget* ctkWorkflowWidget::clientArea()
     if (!d->clientSection->layout())
     if (!d->clientSection->layout())
       {
       {
       d->clientSection->setLayout(new QBoxLayout(QBoxLayout::TopToBottom));
       d->clientSection->setLayout(new QBoxLayout(QBoxLayout::TopToBottom));
+      d->clientSection->layout()->setContentsMargins(0, 0, 0, 0);
       }
       }
     d->clientSection->layout()->addWidget(d->clientArea);
     d->clientSection->layout()->addWidget(d->clientArea);
     }
     }
@@ -260,6 +262,7 @@ void ctkWorkflowWidget::addWidget(QWidget* widget)
     if (!clientArea->layout())
     if (!clientArea->layout())
       {
       {
       clientArea->setLayout(new QBoxLayout(d->clientAreaDirection));
       clientArea->setLayout(new QBoxLayout(d->clientAreaDirection));
+      clientArea->layout()->setContentsMargins(0, 0, 0, 0);
       }
       }
 
 
     clientArea->layout()->addWidget(widget);
     clientArea->layout()->addWidget(widget);