From 8ee02a4be1be4f0373bba8448dfc6c4ac4d482ee Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Wed, 2 May 2012 21:46:52 +0200 Subject: [PATCH] multiple layout bug fixed --- src/customWidgets/UBMediaWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/customWidgets/UBMediaWidget.cpp b/src/customWidgets/UBMediaWidget.cpp index d192109b..67a20ad7 100644 --- a/src/customWidgets/UBMediaWidget.cpp +++ b/src/customWidgets/UBMediaWidget.cpp @@ -56,7 +56,7 @@ UBMediaWidget::UBMediaWidget(eMediaType type, QWidget *parent, const char *name) mpSlider->setMinimum(0); mpSlider->setMaximum(0); - mpSeekerLayout = new QHBoxLayout(this); + mpSeekerLayout = new QHBoxLayout(); mpSeekerLayout->addWidget(mpPlayStopButton, 0); mpSeekerLayout->addWidget(mpPauseButton, 0); mpSeekerLayout->addWidget(mpSlider, 1); @@ -144,9 +144,9 @@ void UBMediaWidget::hideEvent(QHideEvent* event) */ void UBMediaWidget::createMediaPlayer() { - mpMediaContainer = new QWidget(this); + mpMediaContainer = new QWidget(); mpMediaContainer->setObjectName("UBMediaVideoContainer"); - mMediaLayout = new QHBoxLayout(this); + mMediaLayout = new QHBoxLayout(); mpMediaContainer->setLayout(mMediaLayout); if(eMediaType_Video == mType){