equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of VideoPlaybackFileDetailsWidget |
14 * Description: Implementation of VideoPlaybackFileDetailsWidget |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 28 % |
18 // Version : %version: 29 % |
19 |
19 |
20 |
20 |
21 #include <QDir> |
21 #include <QDir> |
22 #include <QDateTime> |
22 #include <QDateTime> |
23 #include <QFileInfo> |
23 #include <QFileInfo> |
100 |
100 |
101 // |
101 // |
102 // Description |
102 // Description |
103 // |
103 // |
104 addItemToListWidget( |
104 addItemToListWidget( |
105 hbTrId( "txt_videos_list_description" ), details->mDescription ); |
105 hbTrId( "txt_videos_list_description" ), details->mDescription ); |
106 |
106 |
|
107 // |
|
108 // File name & File path |
|
109 // |
|
110 // prevent exposure of private paths and show only : |
|
111 // (a) for standalone video player not when is launched from another app |
|
112 // (b) for local playback ony not for streaming video |
|
113 // |
|
114 if ( !mController->isService() ) |
|
115 { |
|
116 QFileInfo fileInfo( details->mClipName ); |
|
117 |
|
118 // File name |
|
119 QString filename = fileInfo.completeBaseName(); |
|
120 addItemToListWidget( hbTrId( "txt_videos_list_file_name" ), filename ); |
|
121 |
|
122 // File path |
|
123 QString path = fileInfo.absoluteFilePath(); |
|
124 addItemToListWidget( hbTrId( "txt_videos_list_file_path" ), path ); |
|
125 } |
|
126 |
107 // |
127 // |
108 // Duration |
128 // Duration |
109 // |
129 // |
110 makeDurationItem( details ); |
130 makeDurationItem( details ); |
111 |
131 |