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
cc4cb782
Commit
cc4cb782
authored
Mar 05, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: EPG gui self update
parent
8d17c211
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
modules/gui/qt4/dialogs/epg.cpp
modules/gui/qt4/dialogs/epg.cpp
+8
-1
modules/gui/qt4/dialogs/epg.hpp
modules/gui/qt4/dialogs/epg.hpp
+2
-0
No files found.
modules/gui/qt4/dialogs/epg.cpp
View file @
cc4cb782
...
...
@@ -35,6 +35,7 @@
#include <QPushButton>
#include <QTextEdit>
#include <QDialogButtonBox>
#include <QTimer>
#include "qt4.hpp"
#include "input_manager.hpp"
...
...
@@ -88,6 +89,11 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
boxLayout
->
addWidget
(
buttonsBox
);
CONNECT
(
buttonsBox
,
rejected
(),
this
,
close
()
);
timer
=
new
QTimer
(
this
);
timer
->
setSingleShot
(
true
);
timer
->
setInterval
(
1000
*
60
);
CONNECT
(
timer
,
timeout
(),
this
,
updateInfos
()
);
updateInfos
();
readSettings
(
"EPGDialog"
,
QSize
(
650
,
450
)
);
}
...
...
@@ -122,10 +128,11 @@ void EpgDialog::showEvent( EPGEvent *event )
void
EpgDialog
::
updateInfos
()
{
if
(
!
THEMIM
->
getInput
()
)
return
;
timer
->
stop
();
int
i_nbitems
=
input_GetItem
(
THEMIM
->
getInput
())
->
i_epg
;
if
(
i_nbitems
>
0
)
msg_Dbg
(
p_intf
,
"Found %i EPG items"
,
i_nbitems
);
epg
->
updateEPG
(
input_GetItem
(
THEMIM
->
getInput
())
->
pp_epg
,
input_GetItem
(
THEMIM
->
getInput
())
->
i_epg
,
input_GetItem
(
THEMIM
->
getInput
())
->
i_type
);
if
(
isVisible
()
)
timer
->
start
();
}
modules/gui/qt4/dialogs/epg.hpp
View file @
cc4cb782
...
...
@@ -29,6 +29,7 @@
class
QLabel
;
class
QTextEdit
;
class
QTimer
;
class
EPGEvent
;
class
EPGWidget
;
...
...
@@ -42,6 +43,7 @@ private:
EPGWidget
*
epg
;
QTextEdit
*
description
;
QLabel
*
title
;
QTimer
*
timer
;
friend
class
Singleton
<
EpgDialog
>
;
...
...
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