Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
54c2243f
Commit
54c2243f
authored
Aug 27, 2012
by
shibakaneki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue 1032
parent
dd8f52f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
UBMediaWidget.cpp
src/customWidgets/UBMediaWidget.cpp
+17
-13
No files found.
src/customWidgets/UBMediaWidget.cpp
View file @
54c2243f
...
...
@@ -114,17 +114,21 @@ eMediaType UBMediaWidget::mediaType()
void
UBMediaWidget
::
showEvent
(
QShowEvent
*
event
)
{
if
(
!
mpVideoWidget
){
mpVideoWidget
=
new
Phonon
::
VideoWidget
(
this
);
mMediaLayout
->
addStretch
(
1
);
mMediaLayout
->
addWidget
(
mpVideoWidget
);
mMediaLayout
->
addStretch
(
1
);
Phonon
::
createPath
(
mpMediaObject
,
mpVideoWidget
);
adaptSizeToVideo
();
mpMediaObject
->
play
();
mpMediaObject
->
stop
();
}
QWidget
::
showEvent
(
event
);
if
(
mType
==
eMediaType_Audio
){
return
;
}
else
{
if
(
!
mpVideoWidget
){
mpVideoWidget
=
new
Phonon
::
VideoWidget
(
this
);
mMediaLayout
->
addStretch
(
1
);
mMediaLayout
->
addWidget
(
mpVideoWidget
);
mMediaLayout
->
addStretch
(
1
);
Phonon
::
createPath
(
mpMediaObject
,
mpVideoWidget
);
adaptSizeToVideo
();
mpMediaObject
->
play
();
mpMediaObject
->
stop
();
}
QWidget
::
showEvent
(
event
);
}
}
void
UBMediaWidget
::
hideEvent
(
QHideEvent
*
event
)
...
...
@@ -159,11 +163,11 @@ void UBMediaWidget::createMediaPlayer()
}
else
if
(
eMediaType_Audio
==
mType
){
mMediaLayout
->
setContentsMargins
(
10
,
10
,
10
,
10
);
mpCover
=
new
QLabel
(
mpMediaContainer
);
mpMediaContainer
->
setStyleSheet
(
QString
(
"background: none;"
));
//
mpMediaContainer->setStyleSheet(QString("background: none;"));
setAudioCover
(
":images/libpalette/soundIcon.svg"
);
mpCover
->
setScaledContents
(
true
);
mMediaLayout
->
addStretch
(
1
);
mMediaLayout
->
addWidget
(
mpCover
,
0
);
mMediaLayout
->
addWidget
(
mpCover
);
mMediaLayout
->
addStretch
(
1
);
mpAudioOutput
=
new
Phonon
::
AudioOutput
(
Phonon
::
MusicCategory
,
this
);
Phonon
::
createPath
(
mpMediaObject
,
mpAudioOutput
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment