videoplayback/hbvideoplaybackview/tsrc/teststatuspanecontrol/stub/src/mpxvideoplaybackdocumentloader.cpp
changeset 24 7d93ee07fb27
parent 15 cf5481c2bc0b
equal deleted inserted replaced
20:b9e04db066d4 24:7d93ee07fb27
    13 *
    13 *
    14 * Description:  Implementation of QMPXVideoPlaybackDocumentLoader
    14 * Description:  Implementation of QMPXVideoPlaybackDocumentLoader
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version:  1 %
    18 // Version : %version:  2 %
    19 
    19 
    20 
    20 
    21 #include <hbwidget.h>
    21 #include <QGraphicsWidget>
    22 #include <hbtransparentwindow.h>
    22 
    23 #include <hblabel.h>
    23 #include "hblabel.h"
       
    24 #include "hbgroupbox.h"
    24 
    25 
    25 #include "mpxvideo_debug.h"
    26 #include "mpxvideo_debug.h"
    26 #include "mpxvideoplaybackdocumentloader.h"
    27 #include "mpxvideoplaybackdocumentloader.h"
    27 
    28 
    28 
    29 
    81 {
    82 {
    82     MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::createWidget") );
    83     MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::createWidget") );
    83 
    84 
    84     QGraphicsWidget *object = NULL;
    85     QGraphicsWidget *object = NULL;
    85         
    86         
    86     if ( name == "transparentWindow" )
    87     if ( name == "titleLayout" )
    87     {
    88     {        
    88         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::creating transparentWindow") );
    89         object = new QGraphicsWidget();
    89         
       
    90         object = new HbTransparentWindow();
       
    91 		object->setObjectName( name );
    90 		object->setObjectName( name );
    92         
    91         
    93         MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::appending to object list") );
       
    94         mWidgets.append( object );                
    92         mWidgets.append( object );                
    95     }
    93     }
    96     else if ( name == "title" )
    94     else if ( name == "title" )
    97     {        
    95     {        
    98         object = new HbLabel();
    96         object = new HbLabel();
    99 		object->setObjectName( name );
    97 		object->setObjectName( name );
       
    98         mWidgets.append( object );
       
    99     }
       
   100     else if ( name == "titleGroupBox" )
       
   101     {
       
   102         object = new HbGroupBox();
       
   103         object->setObjectName( name );
   100         mWidgets.append( object );
   104         mWidgets.append( object );
   101     }
   105     }
   102 
   106 
   103     return object;
   107     return object;
   104 }
   108 }