videoplayback/hbvideoplaybackview/controlsrc/mpxvideoplaybackdocumentloader.cpp
changeset 35 3738fe97f027
parent 30 4f111d64a341
child 36 8aed59de29f9
equal deleted inserted replaced
34:bbb98528c666 35:3738fe97f027
    13 *
    13 *
    14 * Description:  Implementation of QMPXVideoPlaybackDocumentLoader
    14 * Description:  Implementation of QMPXVideoPlaybackDocumentLoader
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 7 %
    18 // Version : %version: 8 %
    19 
    19 
    20 
    20 
    21 
    21 
    22 #include "mpxvideo_debug.h"
    22 #include "mpxvideo_debug.h"
    23 #include "mpxvideoplaybackbuttonbar.h"
    23 #include "mpxvideoplaybackbuttonbar.h"
       
    24 #include "mpxvideoplaybackcontrolbar.h"
    24 #include "mpxvideoplaybackprogressbar.h"
    25 #include "mpxvideoplaybackprogressbar.h"
    25 #include "mpxvideoplaybackdocumentloader.h"
    26 #include "mpxvideoplaybackdocumentloader.h"
    26 #include "mpxvideoplaybackfiledetailswidget.h"
    27 #include "mpxvideoplaybackfiledetailswidget.h"
    27 #include "mpxvideoplaybacknontouchvolumebar.h"
    28 #include "mpxvideoplaybacknontouchvolumebar.h"
    28 #include "mpxvideoplaybackcontrolscontroller.h"
    29 #include "mpxvideoplaybackcontrolscontroller.h"
    56 //
    57 //
    57 QObject *QMPXVideoPlaybackDocumentLoader::createObject( const QString& type, const QString &name )
    58 QObject *QMPXVideoPlaybackDocumentLoader::createObject( const QString& type, const QString &name )
    58 {
    59 {
    59     QObject *object = NULL;
    60     QObject *object = NULL;
    60 
    61 
    61     if ( name == "buttonBarLayout" )
    62     if ( name == "controlBarLayout" )
       
    63     {
       
    64         object = new QMPXVideoPlaybackControlBar( mController );
       
    65         object->setObjectName( name );
       
    66     }
       
    67     else if ( name == "buttonBarLayout" )
    62     {
    68     {
    63         object = new QMPXVideoPlaybackButtonBar( mController );
    69         object = new QMPXVideoPlaybackButtonBar( mController );
    64         object->setObjectName( name );
    70         object->setObjectName( name );
    65     }
    71     }
    66     else if ( name == "progressBarLayout" )
    72     else if ( name == "progressBarLayout" )