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
3a470a07
Commit
3a470a07
authored
Apr 03, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: hide status bar
And allow it to be visible.
parent
a4b671d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+7
-0
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+2
-0
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+5
-0
No files found.
modules/gui/qt4/main_interface.cpp
View file @
3a470a07
...
...
@@ -136,6 +136,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
* Status Bar *
**************/
createStatusBar
();
statusBar
()
->
setVisible
(
getSettings
()
->
value
(
"status-bar-visible"
,
false
).
toBool
()
);
/**************************
* UI and Widgets design
...
...
@@ -304,6 +305,7 @@ MainInterface::~MainInterface()
settings
->
setValue
(
"adv-controls"
,
getControlsVisibilityStatus
()
&
CONTROLS_ADVANCED
);
settings
->
setValue
(
"status-bar-visible"
,
statusBar
()
->
isVisible
()
);
/* Save the stackCentralW sizes */
settings
->
setValue
(
"bgSize"
,
stackWidgetsSizes
[
bgWidget
]
);
...
...
@@ -867,6 +869,11 @@ int MainInterface::getControlsVisibilityStatus()
+
CONTROLS_ADVANCED
*
controls
->
b_advancedVisible
);
}
void
MainInterface
::
setStatusBarVisibility
(
bool
b_visible
)
{
statusBar
()
->
setVisible
(
b_visible
);
}
#if 0
void MainInterface::visual()
{
...
...
modules/gui/qt4/main_interface.hpp
View file @
3a470a07
...
...
@@ -191,6 +191,8 @@ public slots:
void
toggleInterfaceFullScreen
();
void
toggleFSC
();
void
setStatusBarVisibility
(
bool
b_visible
);
void
popupMenu
(
const
QPoint
&
);
void
changeThumbbarButtons
(
int
);
...
...
modules/gui/qt4/menus.cpp
View file @
3a470a07
...
...
@@ -53,6 +53,7 @@
#include <QActionGroup>
#include <QSignalMapper>
#include <QSystemTrayIcon>
#include <QStatusBar>
/*
This file defines the main menus and the pop-up menu (right-click menu)
...
...
@@ -493,6 +494,10 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf, QMenu *current, MainInterface
action
->
setChecked
(
mi
->
isPlDocked
()
);
CONNECT
(
action
,
triggered
(
bool
),
mi
,
dockPlaylist
(
bool
)
);
action
=
menu
->
addAction
(
qtr
(
"Status Bar"
)
);
action
->
setCheckable
(
true
);
action
->
setChecked
(
mi
->
statusBar
()
->
isVisible
()
);
CONNECT
(
action
,
triggered
(
bool
),
mi
,
setStatusBarVisibility
(
bool
)
);
#if 0 /* For Visualisations. Not yet working */
adv = menu->addAction( qtr( "Visualizations selector" ), mi,
SLOT( visual() ) );
...
...
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