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
d4799c27
Commit
d4799c27
authored
Apr 11, 2009
by
Jean-Philippe Andre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: toggle minimal view should not change the interface size
parent
ee95f804
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+16
-4
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+1
-0
No files found.
modules/gui/qt4/main_interface.cpp
View file @
d4799c27
...
...
@@ -83,6 +83,9 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
fullscreenControls
=
NULL
;
cryptedLabel
=
NULL
;
bgWasVisible
=
false
;
i_bg_height
=
0
;
/* Ask for privacy */
askForPrivacy
();
...
...
@@ -606,13 +609,16 @@ QSize MainInterface::sizeHint() const
if
(
VISIBLE
(
bgWidget
)
)
{
nheight
+=
bgWidget
->
size
().
height
();
nwidth
=
bgWidget
->
size
().
width
();
if
(
i_bg_height
)
nheight
+=
i_bg_height
;
else
nheight
+=
bgWidget
->
size
().
height
();
nwidth
=
__MAX
(
nwidth
,
bgWidget
->
size
().
width
()
);
}
else
if
(
videoIsActive
&&
videoWidget
->
isVisible
()
)
{
nheight
+=
videoWidget
->
sizeHint
().
height
();
nwidth
=
videoWidget
->
sizeHint
().
width
(
);
nwidth
=
__MAX
(
nwidth
,
videoWidget
->
sizeHint
().
width
()
);
}
#if 0
if( !dockPL->isFloating() && dockPL->isVisible() && dockPL->widget() )
...
...
@@ -820,7 +826,10 @@ void MainInterface::toggleMinimalView( bool b_switch )
if
(
i_visualmode
!=
QT_ALWAYS_VIDEO_MODE
&&
i_visualmode
!=
QT_MINIMAL_MODE
)
{
/* NORMAL MODE then */
if
(
!
videoWidget
||
videoWidget
->
isHidden
()
)
emit
askBgWidgetToToggle
();
if
(
!
videoWidget
||
videoWidget
->
isHidden
()
)
{
emit
askBgWidgetToToggle
();
}
else
{
/* If video is visible, then toggle the status of bgWidget */
...
...
@@ -828,10 +837,13 @@ void MainInterface::toggleMinimalView( bool b_switch )
}
}
i_bg_height
=
bgWidget
->
height
();
menuBar
()
->
setVisible
(
!
b_switch
);
controls
->
setVisible
(
!
b_switch
);
statusBar
()
->
setVisible
(
!
b_switch
);
inputC
->
setVisible
(
!
b_switch
);
doComponentsUpdate
();
emit
minimalViewToggled
(
b_switch
);
...
...
modules/gui/qt4/main_interface.hpp
View file @
d4799c27
...
...
@@ -139,6 +139,7 @@ private:
int
i_visualmode
;
///< Visual Mode
pl_dock_e
i_pl_dock
;
bool
isDocked
()
{
return
(
i_pl_dock
!=
PL_UNDOCKED
);
}
int
i_bg_height
;
///< Save height of bgWidget
/* Status Bar */
QLabel
*
nameLabel
;
...
...
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