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
0ce1309c
Commit
0ce1309c
authored
Oct 14, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: code cosmetics
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
fae58566
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+6
-9
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+1
-1
No files found.
modules/gui/qt4/main_interface.cpp
View file @
0ce1309c
...
...
@@ -86,13 +86,14 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
#ifndef HAVE_MAEMO
sysTray
=
NULL
;
#endif
playlistVisible
=
false
;
input_name
=
""
;
fullscreenControls
=
NULL
;
cryptedLabel
=
NULL
;
controls
=
NULL
;
inputC
=
NULL
;
b_shouldHide
=
false
;
b_hideAfterCreation
=
false
;
playlistVisible
=
false
;
// FIXME remove
input_name
=
""
;
stackCentralOldState
=
HIDDEN_TAB
;
i_bg_height
=
0
;
...
...
@@ -277,7 +278,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
debug
();
/* Final sizing and showing */
setVisible
(
!
b_
shouldHide
);
setVisible
(
!
b_
hideAfterCreation
);
//setMinimumSize( QSize( 0, 0 ) );
// setMinimumWidth( __MAX( controls->sizeHint().width(),
// menuBar()->sizeHint().width() ) );
...
...
@@ -304,9 +305,7 @@ MainInterface::~MainInterface()
/* Unsure we hide the videoWidget before destroying it */
if
(
stackCentralOldState
==
VIDEO_TAB
)
{
showBg
();
}
/* Save playlist state */
if
(
playlistWidget
)
...
...
@@ -348,7 +347,6 @@ MainInterface::~MainInterface()
QVLCTools
::
saveWidgetPosition
(
settings
,
this
);
settings
->
endGroup
();
/* Unregister callbacks */
var_DelCallback
(
p_intf
->
p_libvlc
,
"intf-show"
,
IntfShowCB
,
p_intf
);
var_DelCallback
(
p_intf
->
p_libvlc
,
"intf-popupmenu"
,
PopupMenuCB
,
p_intf
);
...
...
@@ -583,7 +581,7 @@ inline void MainInterface::initSystray()
if
(
b_systrayAvailable
)
{
b_systrayWanted
=
true
;
b_
shouldHide
=
true
;
b_
hideAfterCreation
=
true
;
}
else
msg_Err
(
p_intf
,
"cannot start minimized without system tray bar"
);
...
...
@@ -812,7 +810,6 @@ void MainInterface::debug()
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() )
{
msg_Dbg( p_intf, "size: %i - %i", size().height(), size().width() );
...
...
modules/gui/qt4/main_interface.hpp
View file @
0ce1309c
...
...
@@ -167,7 +167,7 @@ private:
int
i_visualmode
;
///< Visual Mode
pl_dock_e
i_pl_dock
;
int
i_bg_height
;
///< Save height of bgWidget
bool
b_
shouldHide
;
bool
b_
hideAfterCreation
;
#ifdef WIN32
HIMAGELIST
himl
;
...
...
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