Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
5862064f
Commit
5862064f
authored
Oct 15, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change debug
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
0ce1309c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
20 deletions
+15
-20
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+15
-20
No files found.
modules/gui/qt4/main_interface.cpp
View file @
5862064f
...
...
@@ -359,7 +359,7 @@ MainInterface::~MainInterface()
*****************************/
void
MainInterface
::
recreateToolbars
()
{
msg_
Err
(
p_intf
,
"Recreating the toolbars"
);
msg_
Dbg
(
p_intf
,
"Recreating the toolbars"
);
settings
->
beginGroup
(
"MainWindow"
);
delete
controls
;
delete
inputC
;
...
...
@@ -773,28 +773,23 @@ void MainInterface::doComponentsUpdate()
{
if
(
isFullScreen
()
||
isMaximized
()
)
return
;
msg_
Err
(
p_intf
,
"Updating the geometry"
);
msg_
Warn
(
p_intf
,
"Updating the geometry"
);
/* Here we resize to sizeHint() and not adjustsize because we want
the videoWidget to be exactly the correctSize */
#if
1
#if
ndef NDEBUG
debug
();
#endif
/* This is WRONG */
/* This is WRONG
, but I believe there is a Qt bug here
*/
setMinimumSize
(
0
,
0
);
resize
(
sizeHint
()
);
//adjustSize()
;
//adjustSize()
; /* This is not needed, but might help in the future */
}
void
MainInterface
::
debug
()
{
#if 1
if
(
stackCentralW
->
isVisible
()
)
msg_Dbg
(
p_intf
,
"CentralStack visible"
);
else
msg_Dbg
(
p_intf
,
"CentralStack inVisible"
);
//msg_Dbg( p_intf, "Stack Size: %i - %i", stackCentralW->sizeHint().height(), stackCentralW->sizeHint().width() );
#ifndef NDEBUG
msg_Dbg
(
p_intf
,
"Stack Size: %i - %i"
,
stackCentralW
->
size
().
height
(),
size
().
width
()
);
msg_Dbg
(
p_intf
,
"Stack Size: %i - %i"
,
stackCentralW
->
widget
(
VIDEO_TAB
)
->
size
().
height
(),
stackCentralW
->
widget
(
VIDEO_TAB
)
->
size
().
width
()
);
...
...
@@ -805,9 +800,9 @@ void MainInterface::debug()
msg_Dbg
(
p_intf
,
"Stack minimumsize: %i - %i"
,
stackCentralW
->
minimumSize
().
height
(),
stackCentralW
->
minimumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"Controls minimumsize: %i - %i"
,
controls
->
minimumSize
().
height
(),
controls
->
minimumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"Central minimumsize: %i - %i"
,
centralWidget
()
->
minimumSize
().
height
(),
centralWidget
()
->
minimumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"Menu minimumsize: %i - %i"
,
menuBar
()
->
minimumSize
().
height
(),
menuBar
()
->
minimumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"Input minimuSize: %i - %i"
,
inputC
->
minimumSize
().
height
(),
inputC
->
minimumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"Status minimumsize: %i - %i"
,
statusBar
()
->
minimumSize
().
height
(),
statusBar
()
->
minimumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"Menu minimumsize: %i - %i"
,
menuBar
()
->
minimumSize
().
height
(),
menuBar
()
->
minimumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"Input minimuSize: %i - %i"
,
inputC
->
minimumSize
().
height
(),
inputC
->
minimumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"Status minimumsize: %i - %i"
,
statusBar
()
->
minimumSize
().
height
(),
statusBar
()
->
minimumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"minimumsize: %i - %i"
,
minimumSize
().
height
(),
minimumSize
().
width
()
);
/*if( videoWidget && videoWidget->isVisible() )
...
...
@@ -820,10 +815,9 @@ void MainInterface::debug()
void
MainInterface
::
destroyPopupMenu
()
{
QVLCMenu
::
PopupMenu
(
p_intf
,
false
);
QVLCMenu
::
PopupMenu
(
p_intf
,
false
);
}
void
MainInterface
::
toggleFSC
()
{
if
(
!
fullscreenControls
)
return
;
...
...
@@ -938,10 +932,10 @@ void MainInterface::releaseVideoSlot( void )
/* Asynchronous call from WindowControl function */
int
MainInterface
::
controlVideo
(
int
i_query
,
va_list
args
)
{
/* Debug to check if VOUT_WINDOW_SET_SIZE is called, because this is broken now */
msg_Warn
(
p_intf
,
"Control Video: %i"
,
i_query
);
switch
(
i_query
)
{
/* Debug to check if VOUT_WINDOW_SET_SIZE is called? */
msg_Dbg
(
p_intf
,
"Control Video: %i"
,
i_query
);
case
VOUT_WINDOW_SET_SIZE
:
{
unsigned
int
i_width
=
va_arg
(
args
,
unsigned
int
);
...
...
@@ -1044,7 +1038,8 @@ void MainInterface::toggleMinimalView( bool b_switch )
}
else
{
/* If video is visible, then toggle the status of bgWidget */
//bgWasVisible = !bgWasVisible;
/* If video is visible, then toggle the status of bgWidget */
//bgWasVisible = !bgWasVisible;
if
(
stackCentralOldState
==
BACKG_TAB
)
stackCentralOldState
=
HIDDEN_TAB
;
else
...
...
@@ -1421,7 +1416,7 @@ void MainInterface::resizeEvent( QResizeEvent * event )
}
#endif
QVLCMW
::
resizeEvent
(
event
);
msg_
Warn
(
p_intf
,
"
%i"
,
size
().
height
()
);
msg_
Dbg
(
p_intf
,
"Resize Event, height:
%i"
,
size
().
height
()
);
}
void
MainInterface
::
wheelEvent
(
QWheelEvent
*
e
)
...
...
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