From 186065af041cc0d1958318c0f0c4d38961d4fcbf Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 15 Feb 2013 12:34:38 +0000 Subject: [PATCH] A layout fix for the CHARM project. In the previous version Qt QGroupBox was created with some not null layout inside. Currently layout is empty, so it is not possible to set spacing/margins for null object. --- src/OCCViewer/OCCViewer_ClippingDlg.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/OCCViewer/OCCViewer_ClippingDlg.cxx b/src/OCCViewer/OCCViewer_ClippingDlg.cxx index 35c9e1eab..a16197a42 100644 --- a/src/OCCViewer/OCCViewer_ClippingDlg.cxx +++ b/src/OCCViewer/OCCViewer_ClippingDlg.cxx @@ -71,8 +71,8 @@ OCCViewer_ClippingDlg::OCCViewer_ClippingDlg( OCCViewer_ViewWindow* view, QWidge /***************************************************************/ GroupPoint = new QGroupBox( "GroupPoint", this ); GroupPoint->setTitle( tr("Base point") ); - GroupPoint->layout()->setSpacing( 0 ); - GroupPoint->layout()->setMargin( 0 ); + //GroupPoint->layout()->setSpacing( 0 ); + //GroupPoint->layout()->setMargin( 0 ); QGridLayout* GroupPointLayout = new QGridLayout( GroupPoint ); GroupPointLayout->setAlignment( Qt::AlignTop ); GroupPointLayout->setSpacing( 6 ); @@ -116,8 +116,8 @@ OCCViewer_ClippingDlg::OCCViewer_ClippingDlg( OCCViewer_ViewWindow* view, QWidge /***************************************************************/ GroupDirection = new QGroupBox( "GroupDirection", this ); GroupDirection->setTitle( tr("Direction") ); - GroupDirection->layout()->setSpacing( 0 ); - GroupDirection->layout()->setMargin( 0 ); + //GroupDirection->layout()->setSpacing( 0 ); + //GroupDirection->layout()->setMargin( 0 ); QGridLayout* GroupDirectionLayout = new QGridLayout( GroupDirection ); GroupDirectionLayout->setAlignment( Qt::AlignTop ); GroupDirectionLayout->setSpacing( 6 ); @@ -166,8 +166,8 @@ OCCViewer_ClippingDlg::OCCViewer_ClippingDlg( OCCViewer_ViewWindow* view, QWidge /***************************************************************/ QGroupBox* GroupButtons = new QGroupBox( "GroupButtons", this ); - GroupButtons->layout()->setMargin( 0 ); - GroupButtons->layout()->setSpacing( 0 ); + //GroupButtons->layout()->setMargin( 0 ); + //GroupButtons->layout()->setSpacing( 0 ); QHBoxLayout* GroupButtonsLayout = new QHBoxLayout( GroupButtons ); GroupButtonsLayout->setAlignment( Qt::AlignTop ); GroupButtonsLayout->setMargin( 11 ); GroupButtonsLayout->setSpacing( 6 ); -- 2.39.2