From b5dc5d1d46dcc601d97838d1d7d5dd1003a81bf5 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Fri, 6 Jan 2012 12:51:50 +0100 Subject: [PATCH] fixed duplicated widgets --- src/customWidgets/UBWidgetList.cpp | 2 -- src/gui/UBTeacherBarWidget.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/customWidgets/UBWidgetList.cpp b/src/customWidgets/UBWidgetList.cpp index b46d0770..d73ded86 100644 --- a/src/customWidgets/UBWidgetList.cpp +++ b/src/customWidgets/UBWidgetList.cpp @@ -76,13 +76,11 @@ int UBWidgetList::scaleWidgets(QSize pSize) { int result = 0; foreach(QWidget* eachWidget, mWidgetInfo.keys()){ - qDebug() << __FUNCTION__ << "eachWidget : " << eachWidget; qreal scaleFactor = 0; int newWidgetWidth = pSize.width(); int newWidgetHeight = pSize.height(); if(eWidgetListOrientation_Vertical == mOrientation){ scaleFactor = (float)mWidgetInfo[eachWidget].width() / (float)pSize.width(); - qDebug() << __FUNCTION__ << "scale factor: " << scaleFactor; newWidgetHeight = mWidgetInfo[eachWidget].height()/scaleFactor; result += newWidgetHeight; } diff --git a/src/gui/UBTeacherBarWidget.h b/src/gui/UBTeacherBarWidget.h index 8937bf24..4195a21a 100644 --- a/src/gui/UBTeacherBarWidget.h +++ b/src/gui/UBTeacherBarWidget.h @@ -83,6 +83,7 @@ public: UBTeacherBarPreviewMedia(QWidget* parent=0, const char* name="UBTeacherBarPreviewMedia"); ~UBTeacherBarPreviewMedia(); void loadMedia(QStringList pMedias); + void cleanMedia(); private: UBWidgetList* mWidget;