]> git.sesse.net Git - vlc/commitdiff
Qt: short simplification
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 30 Dec 2008 20:15:20 +0000 (21:15 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 31 Dec 2008 12:43:07 +0000 (13:43 +0100)
modules/gui/qt4/components/interface_widgets.cpp

index 5e424fba55d0506d216e55e4dbc78361d7a9dbe4..7807fa510f7b2c3b2fd33a472a45132301d8f196 100644 (file)
@@ -358,12 +358,11 @@ SpeedControlWidget::SpeedControlWidget( intf_thread_t *_p_i, QWidget *_parent )
 
     CONNECT( normalSpeedButton, clicked(), this, resetRate() );
 
-    QVBoxLayout *speedControlLayout = new QVBoxLayout;
+    QVBoxLayout *speedControlLayout = new QVBoxLayout( this );
     speedControlLayout->setLayoutMargins( 4, 4, 4, 4, 4 );
     speedControlLayout->setSpacing( 4 );
     speedControlLayout->addWidget( speedSlider );
     speedControlLayout->addWidget( normalSpeedButton );
-    setLayout( speedControlLayout );
 
     activateOnState();
 }