Commit 17697767 authored by Claudio Valerio's avatar Claudio Valerio

second draft

parent 265d2bfd
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment