Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
6fa897af
Commit
6fa897af
authored
Jul 29, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bgWidget fix. Close #1743
parent
2e812d10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
12 deletions
+25
-12
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+23
-11
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+2
-1
No files found.
modules/gui/qt4/main_interface.cpp
View file @
6fa897af
...
...
@@ -416,18 +416,21 @@ void MainInterface::handleMainUi( QSettings *settings )
visualSelector->hide();
#endif
/* And video Outputs */
if
(
i_visualmode
==
QT_ALWAYS_VIDEO_MODE
||
i_visualmode
==
QT_MINIMAL_MODE
)
/* Bg Cone */
bgWidget
=
new
BackgroundWidget
(
p_intf
);
bgWidget
->
resize
(
settings
->
value
(
"backgroundSize"
,
QSize
(
300
,
200
)
).
toSize
()
);
bgWidget
->
updateGeometry
();
mainLayout
->
insertWidget
(
0
,
bgWidget
);
CONNECT
(
this
,
askBgWidgetToToggle
(),
bgWidget
,
toggle
()
);
if
(
i_visualmode
!=
QT_ALWAYS_VIDEO_MODE
&&
i_visualmode
!=
QT_MINIMAL_MODE
)
{
bgWidget
=
new
BackgroundWidget
(
p_intf
);
bgWidget
->
resize
(
settings
->
value
(
"backgroundSize"
,
QSize
(
300
,
150
)
).
toSize
()
);
bgWidget
->
updateGeometry
();
mainLayout
->
insertWidget
(
0
,
bgWidget
);
CONNECT
(
this
,
askBgWidgetToToggle
(),
bgWidget
,
toggle
()
);
bgWidget
->
hide
();
}
/* And video Outputs */
if
(
videoEmbeddedFlag
)
{
videoWidget
=
new
VideoWidget
(
p_intf
);
...
...
@@ -652,7 +655,7 @@ void *MainInterface::requestVideo( vout_thread_t *p_nvout, int *pi_x,
int
*
pi_y
,
unsigned
int
*
pi_width
,
unsigned
int
*
pi_height
)
{
b
ool
b
gWasVisible
=
false
;
bgWasVisible
=
false
;
/* Request the videoWidget */
void
*
ret
=
videoWidget
->
request
(
p_nvout
,
pi_x
,
pi_y
,
pi_width
,
pi_height
);
...
...
@@ -698,8 +701,11 @@ void MainInterface::releaseVideoSlot( void *p_win )
videoWidget
->
release
(
p_win
);
videoWidget
->
hide
();
if
(
bgWidget
)
// WRONG
if
(
bgWasVisible
)
{
bgWasVisible
=
false
;
bgWidget
->
show
();
}
adjustSize
();
videoIsActive
=
false
;
...
...
@@ -801,6 +807,12 @@ void MainInterface::toggleMinimalView()
{
/* HACK for minimalView, see menus.cpp */
if
(
!
menuBar
()
->
isVisible
()
)
QVLCMenu
::
minimalViewAction
->
toggle
();
if
(
i_visualmode
!=
QT_ALWAYS_VIDEO_MODE
&&
i_visualmode
!=
QT_MINIMAL_MODE
)
{
emit
askBgWidgetToToggle
();
}
TOGGLEV
(
menuBar
()
);
TOGGLEV
(
controls
);
TOGGLEV
(
statusBar
()
);
...
...
modules/gui/qt4/main_interface.hpp
View file @
6fa897af
...
...
@@ -131,7 +131,8 @@ private:
bool
playlistVisible
;
///< Is the playlist visible ?
bool
visualSelectorEnabled
;
bool
notificationEnabled
;
/// Systray Notifications
bool
b_remainingTime
;
/* showing elapsed or remaining time */
bool
b_remainingTime
;
/* Show elapsed or remaining time */
bool
bgWasVisible
;
int
i_visualmode
;
///< Visual Mode
input_thread_t
*
p_input
;
///< Main input associated to the playlist
...
...
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