From fdc241e02bf8adc895f7f6df411c8eaf1dc19c15 Mon Sep 17 00:00:00 2001 From: omy Date: Mon, 23 Jun 2014 16:11:00 +0400 Subject: [PATCH] refs #993: The warning has been fixed. --- src/Qtx/QtxListAction.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Qtx/QtxListAction.cxx b/src/Qtx/QtxListAction.cxx index 7a70887da..f180136b4 100755 --- a/src/Qtx/QtxListAction.cxx +++ b/src/Qtx/QtxListAction.cxx @@ -242,7 +242,9 @@ QtxListAction::ListFrame::ListFrame( QtxListAction* a, QWidget* parent ) myLines( 5 ), myChars( 5 ) { - QVBoxLayout* top = new QVBoxLayout( this ); + QVBoxLayout* top = new QVBoxLayout(); + this->setLayout(top); + top->setMargin( 0 ); QFrame* main = new QFrame( this ); main->setFrameStyle( QFrame::Panel | QFrame::Raised ); @@ -271,7 +273,7 @@ QtxListAction::ListFrame::ListFrame( QtxListAction* a, QWidget* parent ) SizeGrip* aGrip = new SizeGrip( main ); aGrip->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum); - QHBoxLayout* bottom = new QHBoxLayout ( this ); + QHBoxLayout* bottom = new QHBoxLayout (); bottom->addWidget( myComment, 1 ); bottom->addWidget( aGrip, 0, Qt::AlignBottom | Qt::AlignRight ); -- 2.39.2