瀏覽代碼

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

Jean-Christophe Fillion-Robin 14 年之前
父節點
當前提交
cdeef05082
共有 1 個文件被更改,包括 3 次插入0 次删除
  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
   QBoxLayout* layout = new QBoxLayout(d->direction);
+  layout->setContentsMargins(0, 0, 0, 0);
   this->setLayout(layout);
   layout->addWidget(d->titleSection);
   layout->addWidget(d->subTitleSection);
@@ -240,6 +241,7 @@ QWidget* ctkWorkflowWidget::clientArea()
     if (!d->clientSection->layout())
       {
       d->clientSection->setLayout(new QBoxLayout(QBoxLayout::TopToBottom));
+      d->clientSection->layout()->setContentsMargins(0, 0, 0, 0);
       }
     d->clientSection->layout()->addWidget(d->clientArea);
     }
@@ -260,6 +262,7 @@ void ctkWorkflowWidget::addWidget(QWidget* widget)
     if (!clientArea->layout())
       {
       clientArea->setLayout(new QBoxLayout(d->clientAreaDirection));
+      clientArea->layout()->setContentsMargins(0, 0, 0, 0);
       }
 
     clientArea->layout()->addWidget(widget);