Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
d7baba2f
Commit
d7baba2f
authored
Sep 07, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Yet again a try to fix the sizing behaviour when too big...
parent
88de6a9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+1
-1
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+15
-6
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
d7baba2f
...
...
@@ -73,7 +73,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) : QFrame( NULL ), p_intf( _p_i )
hide
();
/* Set the policy to expand in both directions */
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Expanding
);
//
setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
/* Black background is more coherent for a Video Widget */
QPalette
plt
=
palette
();
...
...
modules/gui/qt4/main_interface.cpp
View file @
d7baba2f
...
...
@@ -598,11 +598,9 @@ void MainInterface::debug()
msg_Dbg
(
p_intf
,
"sizeHint: %i - %i"
,
sizeHint
().
height
(),
sizeHint
().
width
()
);
if
(
videoWidget
&&
videoWidget
->
isVisible
()
)
{
// sleep( 10 );
msg_Dbg
(
p_intf
,
"size: %i - %i"
,
size
().
height
(),
size
().
width
()
);
msg_Dbg
(
p_intf
,
"sizeHint: %i - %i"
,
sizeHint
().
height
(),
sizeHint
().
width
()
);
}
adjustSize
();
#endif
}
...
...
@@ -765,8 +763,8 @@ void MainInterface::togglePlaylist()
{
/* toggle the visibility of the playlist */
TOGGLEV
(
playlistWidget
);
resize
(
sizeHint
()
);
playlistVisible
=
!
playlistVisible
;
//doComponentsUpdate(); //resize( sizeHint() );
}
}
...
...
@@ -774,7 +772,7 @@ void MainInterface::togglePlaylist()
void
MainInterface
::
undockPlaylist
()
{
// dockPL->setFloating( true );
adjustSize
();
//
adjustSize();
}
void
MainInterface
::
dockPlaylist
(
pl_dock_e
i_pos
)
...
...
@@ -805,11 +803,22 @@ void MainInterface::toggleMinimalView()
/* Video widget cannot do this synchronously as it runs in another thread */
/* Well, could it, actually ? Probably dangerous ... */
/* This function is called:
- toggling of minimal View
- through askUpdate() by Vout thread request video and resize video (zoom)
- Advanced buttons toggled
*/
void
MainInterface
::
doComponentsUpdate
()
{
msg_Dbg
(
p_intf
,
"Updating the geometry"
);
// resize( sizeHint() );
adjustSize
();
/* Here we resize to sizeHint() and not adjustsize because we want
the videoWidget to be exactly the correctSize */
resize
(
sizeHint
()
);
// adjustSize() ;
#ifndef NDEBUG
debug
();
#endif
}
/* toggling advanced controls buttons */
...
...
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