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
a5dcd1ee
Commit
a5dcd1ee
authored
Mar 23, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: EPG: dialog: add no epg warning
parent
19e198c5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
modules/gui/qt4/components/epg/EPGWidget.cpp
modules/gui/qt4/components/epg/EPGWidget.cpp
+15
-0
modules/gui/qt4/components/epg/EPGWidget.hpp
modules/gui/qt4/components/epg/EPGWidget.hpp
+2
-0
No files found.
modules/gui/qt4/components/epg/EPGWidget.cpp
View file @
a5dcd1ee
...
...
@@ -27,6 +27,7 @@
#include "EPGWidget.hpp"
#include <QStackedWidget>
#include <QVBoxLayout>
#include <QScrollBar>
#include <QLabel>
...
...
@@ -45,11 +46,24 @@ EPGWidget::EPGWidget( QWidget *parent ) : QWidget( parent )
m_epgView
->
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Expanding
);
setZoom
(
1
);
rootWidget
=
new
QStackedWidget
(
this
);
QWidget
*
containerWidget
=
new
QWidget
(
this
);
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
layout
->
addWidget
(
m_rulerWidget
,
0
,
1
);
layout
->
addWidget
(
m_channelsWidget
,
1
,
0
);
layout
->
addWidget
(
m_epgView
,
1
,
1
);
layout
->
setSpacing
(
0
);
containerWidget
->
setLayout
(
layout
);
rootWidget
->
addWidget
(
containerWidget
);
/* index 0 */
QLabel
*
noepgLabel
=
new
QLabel
(
tr
(
"No EPG Data Available"
),
this
);
noepgLabel
->
setAlignment
(
Qt
::
AlignCenter
);
rootWidget
->
addWidget
(
noepgLabel
);
/* index 1 */
rootWidget
->
setCurrentIndex
(
1
);
layout
=
new
QGridLayout
(
this
);
layout
->
addWidget
(
rootWidget
);
setLayout
(
layout
);
CONNECT
(
m_epgView
,
startTimeChanged
(
QDateTime
),
...
...
@@ -88,6 +102,7 @@ void EPGWidget::updateEPG( vlc_epg_t **pp_epg, int i_epg, uint8_t i_input_type )
b_input_type_known
=
true
;
m_epgView
->
cleanup
();
/* expire items and flags */
rootWidget
->
setCurrentIndex
(
(
i_epg
>
0
)
?
0
:
1
);
for
(
int
i
=
0
;
i
<
i_epg
;
++
i
)
{
...
...
modules/gui/qt4/components/epg/EPGWidget.hpp
View file @
a5dcd1ee
...
...
@@ -33,6 +33,7 @@
#include <vlc_epg.h>
#include <QWidget>
#include <QStackedWidget>
class
QDateTime
;
...
...
@@ -51,6 +52,7 @@ private:
EPGRuler
*
m_rulerWidget
;
EPGView
*
m_epgView
;
EPGChannels
*
m_channelsWidget
;
QStackedWidget
*
rootWidget
;
uint8_t
i_event_source_type
;
bool
b_input_type_known
;
...
...
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