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
30c9622b
Commit
30c9622b
authored
Mar 30, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: EPGItem: only update() if data changed
parent
bebf4725
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
modules/gui/qt4/components/epg/EPGItem.cpp
modules/gui/qt4/components/epg/EPGItem.cpp
+19
-7
No files found.
modules/gui/qt4/components/epg/EPGItem.cpp
View file @
30c9622b
...
...
@@ -141,13 +141,25 @@ void EPGItem::setRow( unsigned int i_row_ )
void
EPGItem
::
setData
(
vlc_epg_event_t
*
data
)
{
m_start
=
QDateTime
::
fromTime_t
(
data
->
i_start
);
m_name
=
qfu
(
data
->
psz_name
);
setToolTip
(
qfu
(
data
->
psz_name
)
);
m_description
=
qfu
(
data
->
psz_description
);
m_shortDescription
=
qfu
(
data
->
psz_short_description
);
setDuration
(
data
->
i_duration
);
update
();
QDateTime
newtime
=
QDateTime
::
fromTime_t
(
data
->
i_start
);
QString
newname
=
qfu
(
data
->
psz_name
);
QString
newdesc
=
qfu
(
data
->
psz_description
);
QString
newshortdesc
=
qfu
(
data
->
psz_short_description
);
if
(
m_start
!=
newtime
||
m_name
!=
newname
||
m_description
!=
newdesc
||
m_shortDescription
!=
newshortdesc
||
m_duration
!=
data
->
i_duration
)
{
m_start
=
newtime
;
m_name
=
newname
;
setToolTip
(
newname
);
m_description
=
newdesc
;
m_shortDescription
=
newshortdesc
;
setDuration
(
data
->
i_duration
);
update
();
}
}
void
EPGItem
::
setCurrent
(
bool
b_current
)
...
...
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