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
a791fc94
Commit
a791fc94
authored
Apr 01, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: epgwidget: use anon enum for indexes
parent
26017bcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
modules/gui/qt4/components/epg/EPGWidget.cpp
modules/gui/qt4/components/epg/EPGWidget.cpp
+10
-3
No files found.
modules/gui/qt4/components/epg/EPGWidget.cpp
View file @
a791fc94
...
...
@@ -37,6 +37,12 @@
#include <vlc_common.h>
#include <vlc_epg.h>
enum
{
EPGVIEW_WIDGET
=
0
,
NOEPG_WIDGET
=
1
};
EPGWidget
::
EPGWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
{
b_input_type_known
=
false
;
...
...
@@ -58,11 +64,11 @@ EPGWidget::EPGWidget( QWidget *parent ) : QWidget( parent )
layout
->
addWidget
(
m_epgView
,
1
,
1
);
layout
->
setSpacing
(
0
);
containerWidget
->
setLayout
(
layout
);
rootWidget
->
addWidget
(
containerWidget
);
/* index 0 */
rootWidget
->
insertWidget
(
EPGVIEW_WIDGET
,
containerWidget
);
QLabel
*
noepgLabel
=
new
QLabel
(
qtr
(
"No EPG Data Available"
),
this
);
noepgLabel
->
setAlignment
(
Qt
::
AlignCenter
);
rootWidget
->
addWidget
(
noepgLabel
);
/* index 1 */
rootWidget
->
insertWidget
(
NOEPG_WIDGET
,
noepgLabel
);
rootWidget
->
setCurrentIndex
(
1
);
layout
=
new
QGridLayout
(
this
);
...
...
@@ -125,7 +131,8 @@ void EPGWidget::updateEPG( input_item_t *p_input_item )
vlc_mutex_unlock
(
&
p_input_item
->
lock
);
/* toggle our widget view */
rootWidget
->
setCurrentIndex
(
m_epgView
->
hasValidData
()
?
0
:
1
);
rootWidget
->
setCurrentIndex
(
m_epgView
->
hasValidData
()
?
EPGVIEW_WIDGET
:
NOEPG_WIDGET
);
// Update the global duration and start time.
m_epgView
->
updateDuration
();
...
...
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