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
f509b90d
Commit
f509b90d
authored
Feb 13, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: deinline createStatusBar() and explicit statusBar creation.
No feature change.
parent
0ee99df5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+8
-5
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+2
-1
No files found.
modules/gui/qt4/main_interface.cpp
View file @
f509b90d
...
...
@@ -148,7 +148,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
QVLCMenu
::
createMenuBar
(
this
,
p_intf
,
visualSelectorEnabled
);
/* StatusBar Creation */
createStatusBar
(
);
setStatusBar
(
createStatusBar
()
);
/********************
* Input Manager *
...
...
@@ -311,8 +311,10 @@ MainInterface::~MainInterface()
* Main UI handling *
*****************************/
inline
void
MainInterface
::
createStatusBar
()
QStatusBar
*
MainInterface
::
createStatusBar
()
{
QStatusBar
*
statusBar
=
new
QStatusBar
;
/****************
* Status Bar *
****************/
...
...
@@ -329,15 +331,16 @@ inline void MainInterface::createStatusBar()
nameLabel
->
setFrameStyle
(
QFrame
::
Sunken
|
QFrame
::
StyledPanel
);
/* and adding those */
statusBar
()
->
addWidget
(
nameLabel
,
8
);
statusBar
()
->
addPermanentWidget
(
speedLabel
,
0
);
statusBar
()
->
addPermanentWidget
(
timeLabel
,
0
);
statusBar
->
addWidget
(
nameLabel
,
8
);
statusBar
->
addPermanentWidget
(
speedLabel
,
0
);
statusBar
->
addPermanentWidget
(
timeLabel
,
0
);
/* timeLabel behaviour:
- double clicking opens the goto time dialog
- right-clicking and clicking just toggle between remaining and
elapsed time.*/
CONNECT
(
timeLabel
,
timeLabelDoubleClicked
(),
THEDP
,
gotoTimeDialog
()
);
return
statusBar
;
}
inline
void
MainInterface
::
initSystray
()
...
...
modules/gui/qt4/main_interface.hpp
View file @
f509b90d
...
...
@@ -49,6 +49,7 @@ class FullscreenControllerWidget;
class
SpeedControlWidget
;
class
QMenu
;
class
QSize
;
class
QStatusBar
;
enum
{
CONTROLS_HIDDEN
=
0x0
,
...
...
@@ -117,7 +118,7 @@ private:
void
createSystray
();
void
initSystray
();
void
createStatusBar
();
QStatusBar
*
createStatusBar
();
/* Video */
VideoWidget
*
videoWidget
;
...
...
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