videoplayback/hbvideoplaybackview/tsrc/testmpxvideoplaybackbuttonbar/stub/src/mpxvideoplaybackdocumentloader.cpp
changeset 36 8aed59de29f9
parent 34 bbb98528c666
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
    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 
    21 
    22 #include "hbpushbutton.h"
    22 #include "hbpushbutton.h"
    23 
    23 
    52 // QMPXVideoPlaybackDocumentLoader::findWidget()
    52 // QMPXVideoPlaybackDocumentLoader::findWidget()
    53 // -------------------------------------------------------------------------------------------------
    53 // -------------------------------------------------------------------------------------------------
    54 //
    54 //
    55 QGraphicsWidget *QMPXVideoPlaybackDocumentLoader::findWidget( const QString &name )
    55 QGraphicsWidget *QMPXVideoPlaybackDocumentLoader::findWidget( const QString &name )
    56 {
    56 {
    57     MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::findWidget") );
    57     MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::findWidget( %s )"), name.data() );
    58 
    58 
    59     QGraphicsWidget *object = NULL;
    59     QGraphicsWidget *object = NULL;
    60 
    60 
    61     int index = exist( name );
    61     int index = exist( name );
    62 
    62 
    76 // QMPXVideoPlaybackDocumentLoader::createWidget()
    76 // QMPXVideoPlaybackDocumentLoader::createWidget()
    77 // -------------------------------------------------------------------------------------------------
    77 // -------------------------------------------------------------------------------------------------
    78 //
    78 //
    79 QGraphicsWidget *QMPXVideoPlaybackDocumentLoader::createWidget( const QString &name )
    79 QGraphicsWidget *QMPXVideoPlaybackDocumentLoader::createWidget( const QString &name )
    80 {
    80 {
    81     MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::createWidget") );
    81     MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::createWidget( %s )"), name.data() );
    82 
    82 
    83     QGraphicsWidget *object = NULL;
    83     QGraphicsWidget *object = NULL;
    84         
    84         
    85     if ( name == "rwButton" ||  name == "pauseButton" || name == "playButton" || 
    85     if ( name == "rwButton" ||  name == "pauseButton" || name == "playButton" || 
    86         name == "ffButton" || name == "naturalButton" || name == "stretchButton" ||
    86         name == "ffButton" || name == "naturalButton" || name == "stretchButton" ||
    87         name == "zoomButton" || name == "detailsButton" )
    87         name == "zoomButton" || name == "detailsButton" || "attachButton" || "aspectRatioButtons" )
    88     {
    88     {
    89         object = new HbPushButton();
    89         object = new HbPushButton();
    90         object->setObjectName( name );
    90         object->setObjectName( name );
    91         mWidgets.append( object );
    91         mWidgets.append( object );
    92     }
    92     }
   113     if ( i == mWidgets.count() )
   113     if ( i == mWidgets.count() )
   114     {
   114     {
   115         i = -1;
   115         i = -1;
   116     }
   116     }
   117 
   117 
   118     MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::exist %d"), i );
   118     MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::exist( %s ) ret %d"), name.data(), i );
   119 
   119 
   120     return i;
   120     return i;
   121 }
   121 }
   122 
   122 
   123 // End of file
   123 // End of file