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
1d3c64eb
Commit
1d3c64eb
authored
Mar 19, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: remove dead code
parent
5b7b930e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
94 deletions
+1
-94
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+1
-94
No files found.
modules/gui/qt4/main_interface.cpp
View file @
1d3c64eb
...
...
@@ -61,7 +61,7 @@
#include <vlc_keys.h>
/* Wheel event */
#include <vlc_vout_display.h>
/* vout_thread_t and VOUT_ events */
#define DEBUG_INTF
//
#define DEBUG_INTF
/* Callback prototypes */
static
int
PopupMenuCB
(
vlc_object_t
*
p_this
,
const
char
*
psz_variable
,
...
...
@@ -478,83 +478,6 @@ inline void MainInterface::createStatusBar()
* Handling of sizing of the components
**********************************************************************/
/* This function is probably wrong, but we don't have many many choices...
Since we can't know from the playlist Widget if we are inside a dock or not,
because the playlist Widget can be called by THEDP, as a separate windows for
the skins.
Maybe the other solution is to redefine the sizeHint() of the playlist and
ask _parent->isFloating()...
If you think this would be better, please FIXME it...
*/
#if 0
QSize MainInterface::sizeHint() const
{
#if 0
if( b_keep_size )
{
if( i_visualmode )
{
return mainVideoSize;
}
else
{
if( VISIBLE( bgWidget) ||
( videoIsActive && videoWidget->isVisible() )
)
return mainVideoSize;
else
return mainBasedSize;
}
}
#endif
int nwidth = __MAX( controls->sizeHint().width(),
menuBar()->sizeHint().width() );
int nheight = controls->isVisible() ?
controls->size().height()
+ inputC->size().height()
+ menuBar()->size().height()
+ statusBar()->size().height()
: 0 ;
/* if( stackCentralW->isVisible() )
{
nheight += stackCentralW->height();
nwidth = __MAX( nwidth, stackCentralW->width() );
}*/
/* if( VISIBLE( bgWidget ) )
{
msg_Warn( p_intf, "Hello here" );
if( i_bg_height )
nheight += i_bg_height;
else
nheight += bgWidget->size().height();
nwidth = __MAX( nwidth, bgWidget->size().width() );
}
else if( videoIsActive && videoWidget->isVisible() )
{
msg_Warn( p_intf, "Hello there" );
nheight += videoWidget->sizeHint().height();
nwidth = __MAX( nwidth, videoWidget->sizeHint().width() );
}*/
#if 0
if( !dockPL->isFloating() && dockPL->isVisible() && dockPL->widget() )
{
nheight += dockPL->size().height();
nwidth = __MAX( nwidth, dockPL->size().width() );
msg_Warn( p_intf, "3 %i %i", nheight, nwidth );
}
#endif
return QSize( nwidth, nheight );
}
#endif
/* 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)
...
...
@@ -583,29 +506,13 @@ void MainInterface::doComponentsUpdate()
void
MainInterface
::
debug
()
{
#ifdef DEBUG_INTF
msg_Dbg
(
p_intf
,
"Stack Size: %i - %i"
,
stackCentralW
->
size
().
height
(),
size
().
width
()
);
if
(
videoWidget
)
msg_Dbg
(
p_intf
,
"Stack Size: %i - %i"
,
videoWidget
->
size
().
height
(),
videoWidget
->
size
().
width
()
);
else
msg_Dbg
(
p_intf
,
"no embedded video"
);
msg_Dbg
(
p_intf
,
"size: %i - %i"
,
size
().
height
(),
size
().
width
()
);
msg_Dbg
(
p_intf
,
"sizeHint: %i - %i"
,
sizeHint
().
height
(),
sizeHint
().
width
()
);
msg_Dbg
(
p_intf
,
"maximumsize: %i - %i"
,
maximumSize
().
height
(),
maximumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"minimumsize: %i - %i"
,
minimumSize
().
height
(),
minimumSize
().
width
()
);
msg_Dbg
(
p_intf
,
"Stack size: %i - %i"
,
stackCentralW
->
size
().
height
(),
stackCentralW
->
size
().
width
()
);
msg_Dbg
(
p_intf
,
"Stack sizeHint: %i - %i"
,
stackCentralW
->
sizeHint
().
height
(),
stackCentralW
->
sizeHint
().
width
()
);
msg_Dbg
(
p_intf
,
"Central size: %i - %i"
,
centralWidget
()
->
size
().
height
(),
centralWidget
()
->
size
().
width
()
);
msg_Dbg
(
p_intf
,
"bg Size: %i - %i"
,
bgWidget
->
size
().
height
(),
bgWidget
->
size
().
width
()
);
/*if( videoWidget && videoWidget->isVisible() )
{
msg_Dbg( p_intf, "size: %i - %i", size().height(), size().width() );
msg_Dbg( p_intf, "sizeHint: %i - %i", sizeHint().height(), sizeHint().width() );
}*/
#endif
}
...
...
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