Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
3d8c142e
Commit
3d8c142e
authored
Oct 14, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: show a minimized Video, when moving to playlist
There are no animation, since I was unable to make them work.
parent
fc583e2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+32
-0
No files found.
modules/gui/qt4/main_interface.cpp
View file @
3d8c142e
...
...
@@ -545,6 +545,25 @@ inline void MainInterface::showTab( QWidget *widget )
stackCentralOldWidget
=
stackCentralW
->
currentWidget
();
stackWidgetsSizes
[
stackCentralOldWidget
]
=
stackCentralW
->
size
();
/* If we are playing video, embedded */
if
(
videoWidget
&&
THEMIM
->
getIM
()
->
hasVideo
()
)
{
/* Video -> Playlist */
if
(
videoWidget
==
stackCentralOldWidget
&&
widget
==
playlistWidget
)
{
stackCentralW
->
removeWidget
(
videoWidget
);
videoWidget
->
show
();
videoWidget
->
raise
();
}
/* Playlist -> Video */
if
(
playlistWidget
==
stackCentralOldWidget
&&
widget
==
videoWidget
)
{
playlistWidget
->
artContainer
->
removeWidget
(
videoWidget
);
videoWidget
->
show
();
videoWidget
->
raise
();
stackCentralW
->
addWidget
(
videoWidget
);
}
}
stackCentralW
->
setCurrentWidget
(
widget
);
if
(
b_autoresize
)
resizeStack
(
stackWidgetsSizes
[
widget
].
width
(),
stackWidgetsSizes
[
widget
].
height
()
);
...
...
@@ -553,6 +572,14 @@ inline void MainInterface::showTab( QWidget *widget )
msg_Warn
(
p_intf
,
"State change %i"
,
stackCentralW
->
currentIndex
()
);
msg_Warn
(
p_intf
,
"New stackCentralOldWidget %i"
,
stackCentralW
->
indexOf
(
stackCentralOldWidget
)
);
#endif
/* This part is done later, to account for the new pl size */
if
(
videoWidget
&&
THEMIM
->
getIM
()
->
hasVideo
()
&&
videoWidget
==
stackCentralOldWidget
&&
widget
==
playlistWidget
)
{
playlistWidget
->
artContainer
->
addWidget
(
videoWidget
);
playlistWidget
->
artContainer
->
setCurrentWidget
(
videoWidget
);
}
}
void
MainInterface
::
destroyPopupMenu
()
...
...
@@ -638,6 +665,11 @@ void MainInterface::releaseVideoSlot( void )
if
(
stackCentralW
->
currentWidget
()
==
videoWidget
)
restoreStackOldWidget
();
else
if
(
playlistWidget
->
artContainer
->
currentWidget
()
==
videoWidget
)
{
playlistWidget
->
artContainer
->
setCurrentIndex
(
0
);
stackCentralW
->
addWidget
(
videoWidget
);
}
/* We don't want to have a blank video to popup */
stackCentralOldWidget
=
bgWidget
;
...
...
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