videoplayback/hbvideoplaybackview/tsrc/testprogressbar/stub/src/mpxvideoplaybackdocumentloader.cpp
equal
deleted
inserted
replaced
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 <hbwidget.h> |
22 #include <hbtransparentwindow.h> |
22 #include <hbtransparentwindow.h> |
23 #include <hbprogressbar.h> |
23 #include <hbprogressslider.h> |
24 |
24 |
25 #include "mpxvideo_debug.h" |
25 #include "mpxvideo_debug.h" |
26 #include "mpxvideoplaybackdocumentloader.h" |
26 #include "mpxvideoplaybackdocumentloader.h" |
27 #include "hblabel.h" |
27 #include "hblabel.h" |
28 |
28 |
82 { |
82 { |
83 MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::createWidget") ); |
83 MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::createWidget") ); |
84 |
84 |
85 QGraphicsWidget *object = NULL; |
85 QGraphicsWidget *object = NULL; |
86 |
86 |
87 if ( name == "transparentWindow" ) |
87 if ( name == "progressSlider" ) |
88 { |
|
89 MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::creating transparentWindow") ); |
|
90 |
|
91 object = new HbTransparentWindow(); |
|
92 object->setObjectName( name ); |
|
93 |
|
94 MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::appending to object list") ); |
|
95 mWidgets.append( object ); |
|
96 } |
|
97 else if ( name == "title" || name == "positionLabel" || name == "durationLabel" ) |
|
98 { |
88 { |
99 object = new HbLabel(); |
89 object = new HbProgressSlider(); |
100 object->setObjectName( name ); |
90 object->setObjectName( name ); |
101 mWidgets.append( object ); |
|
102 } |
|
103 else if ( name == "progressSlider" ) |
|
104 { |
|
105 object = new HbProgressBar(); |
|
106 object->setObjectName( name ); |
|
107 mWidgets.append( object ); |
91 mWidgets.append( object ); |
108 } |
92 } |
109 |
|
110 |
93 |
111 return object; |
94 return object; |
112 } |
95 } |
113 |
96 |
114 // ------------------------------------------------------------------------------------------------- |
97 // ------------------------------------------------------------------------------------------------- |