From 176977677e755cac0fd8261f498b44f0478a4365 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Wed, 4 Jan 2012 14:41:35 +0100 Subject: [PATCH] second draft --- src/gui/UBTeacherBarWidget.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/UBTeacherBarWidget.cpp b/src/gui/UBTeacherBarWidget.cpp index 5a62f301..3b403e2c 100644 --- a/src/gui/UBTeacherBarWidget.cpp +++ b/src/gui/UBTeacherBarWidget.cpp @@ -351,8 +351,6 @@ void UBTeacherBarDropMediaZone::dropEvent(QDropEvent *pEvent) QString mimeType = UBFileSystemUtils::mimeTypeFromFileName(pEvent->mimeData()->urls().at(0).toLocalFile()); if(mimeType.contains("image")){ QPixmap pix = QPixmap(pEvent->mimeData()->urls().at(0).toLocalFile()); - float ratio = (float)width()/(float)pix.width(); - pix.transformed(QTransform::scale((float)pix.width()/ratio,(float)pix.height()/ratio)); QLabel* label = new QLabel(); label->setPixmap(pix); label->setScaledContents(true);