]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
refs #993: The warning has been fixed.
authoromy <omy@opencascade.com>
Mon, 23 Jun 2014 12:11:00 +0000 (16:11 +0400)
committeromy <omy@opencascade.com>
Mon, 23 Jun 2014 12:11:00 +0000 (16:11 +0400)
src/Qtx/QtxListAction.cxx

index 7a70887da0002d78e9712fdecca6d43bbc09d3e2..f180136b4ae472019c5eb5e96102866db944207e 100755 (executable)
@@ -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 );