videocollection/videofiledetailsview/src/videofiledetailsviewplugin.cpp
changeset 41 229f037ce963
parent 38 ff53afa8ad05
child 44 518105d52e45
--- a/videocollection/videofiledetailsview/src/videofiledetailsviewplugin.cpp	Fri Jun 11 09:44:20 2010 +0300
+++ b/videocollection/videofiledetailsview/src/videofiledetailsviewplugin.cpp	Thu Jun 24 09:49:13 2010 +0300
@@ -15,7 +15,7 @@
 *
 */
 
-// Version : %version: 76 %
+// Version : %version: 76.1.1 %
 
 // INCLUDE FILES
 #include <qcoreapplication.h>
@@ -326,6 +326,14 @@
 		    return;
 		}
 				
+	    // Fix the size of the thumbnail, as that needs to be in 16:9
+	    qreal width = button->size().width();
+	    qreal height = width * 9 / 16;
+	    
+	    HbStackedWidget* thumbWidget = findWidget<HbStackedWidget>(VIDEO_DETAILS_THUMBNAIL);
+	    thumbWidget->setPreferredWidth(width);
+	    thumbWidget->setPreferredHeight(height);
+	    
 		if (service == VideoServices::EUriFetcher)
 		{
             button->setText(hbTrId("txt_videos_button_attach"));