videocollection/videofiledetailsview/src/videofiledetailsviewplugin.cpp
changeset 41 229f037ce963
parent 38 ff53afa8ad05
child 44 518105d52e45
equal deleted inserted replaced
40:13331705e488 41:229f037ce963
    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()));