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
94348d6d
Commit
94348d6d
authored
Apr 12, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: correctly hide/show the statusBar
Sometimes it didn't work, when stopping, as pointed out by Rémi on IRC.
parent
e9e44b78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+5
-3
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 @
94348d6d
...
...
@@ -136,7 +136,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
* Status Bar *
**************/
createStatusBar
();
statusBar
()
->
setVisible
(
getSettings
()
->
value
(
"status-bar-visible"
,
false
).
toBool
()
);
b_statusbarVisible
=
getSettings
()
->
value
(
"status-bar-visible"
,
false
).
toBool
();
statusBar
()
->
setVisible
(
b_statusbarVisible
);
/**************************
* UI and Widgets design
...
...
@@ -305,7 +306,7 @@ MainInterface::~MainInterface()
settings
->
setValue
(
"adv-controls"
,
getControlsVisibilityStatus
()
&
CONTROLS_ADVANCED
);
settings
->
setValue
(
"status-bar-visible"
,
statusBar
()
->
isVisible
()
);
settings
->
setValue
(
"status-bar-visible"
,
b_statusbarVisible
);
/* Save the stackCentralW sizes */
settings
->
setValue
(
"bgSize"
,
stackWidgetsSizes
[
bgWidget
]
);
...
...
@@ -823,7 +824,7 @@ void MainInterface::setMinimalView( bool b_minimal )
{
menuBar
()
->
setVisible
(
!
b_minimal
);
controls
->
setVisible
(
!
b_minimal
);
statusBar
()
->
setVisible
(
!
b_minimal
);
statusBar
()
->
setVisible
(
!
b_minimal
&&
b_statusbarVisible
);
inputC
->
setVisible
(
!
b_minimal
);
}
...
...
@@ -872,6 +873,7 @@ int MainInterface::getControlsVisibilityStatus()
void
MainInterface
::
setStatusBarVisibility
(
bool
b_visible
)
{
statusBar
()
->
setVisible
(
b_visible
);
b_statusbarVisible
=
b_visible
;
}
#if 0
...
...
modules/gui/qt4/main_interface.hpp
View file @
94348d6d
...
...
@@ -170,6 +170,7 @@ private:
bool
b_plDocked
;
///< Is the playlist docked ?
bool
b_hasPausedWhenMinimized
;
bool
b_statusbarVisible
;
#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