videocollection/videofiledetailsview/src/videofiledetailsviewplugin.cpp
changeset 47 45e72b57a2fd
parent 24 7d93ee07fb27
child 52 e3cecb93e76a
equal deleted inserted replaced
46:adbe7d5ba2f5 47:45e72b57a2fd
    13 *
    13 *
    14 * Description:   VideoCollectionViewPlugin class implementation
    14 * Description:   VideoCollectionViewPlugin class implementation
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 76 %
    18 // Version : %version: 76.1.1 %
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include <qcoreapplication.h>
    21 #include <qcoreapplication.h>
    22 #include <xqserviceutil.h>
    22 #include <xqserviceutil.h>
    23 #include <xqplugin.h>
    23 #include <xqplugin.h>
   324 		{
   324 		{
   325 		    ERROR(-1, "VideoFileDetailsViewPlugin::activateView() failed to load details button.");
   325 		    ERROR(-1, "VideoFileDetailsViewPlugin::activateView() failed to load details button.");
   326 		    return;
   326 		    return;
   327 		}
   327 		}
   328 				
   328 				
       
   329 	    // Fix the size of the thumbnail, as that needs to be in 16:9
       
   330 	    qreal width = button->size().width();
       
   331 	    qreal height = width * 9 / 16;
       
   332 	    
       
   333 	    HbStackedWidget* thumbWidget = findWidget<HbStackedWidget>(VIDEO_DETAILS_THUMBNAIL);
       
   334 	    thumbWidget->setPreferredWidth(width);
       
   335 	    thumbWidget->setPreferredHeight(height);
       
   336 	    
   329 		if (service == VideoServices::EUriFetcher)
   337 		if (service == VideoServices::EUriFetcher)
   330 		{
   338 		{
   331             button->setText(hbTrId("txt_videos_button_attach"));
   339             button->setText(hbTrId("txt_videos_button_attach"));
   332 
   340 
   333             connect(button, SIGNAL(clicked(bool)), this, SLOT(getFileUri()));
   341             connect(button, SIGNAL(clicked(bool)), this, SLOT(getFileUri()));