Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
cdb42f5c
Commit
cdb42f5c
authored
Mar 28, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: EPGItem: fix constness
parent
e92bf8c4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
modules/gui/qt4/components/epg/EPGItem.cpp
modules/gui/qt4/components/epg/EPGItem.cpp
+2
-2
modules/gui/qt4/components/epg/EPGItem.hpp
modules/gui/qt4/components/epg/EPGItem.hpp
+4
-4
No files found.
modules/gui/qt4/components/epg/EPGItem.cpp
View file @
cdb42f5c
...
@@ -136,7 +136,7 @@ const QDateTime& EPGItem::start() const
...
@@ -136,7 +136,7 @@ const QDateTime& EPGItem::start() const
return
m_start
;
return
m_start
;
}
}
QDateTime
EPGItem
::
end
()
QDateTime
EPGItem
::
end
()
const
{
{
return
QDateTime
(
m_start
).
addSecs
(
m_duration
);
return
QDateTime
(
m_start
).
addSecs
(
m_duration
);
}
}
...
@@ -204,7 +204,7 @@ void EPGItem::setRating( uint8_t i_rating )
...
@@ -204,7 +204,7 @@ void EPGItem::setRating( uint8_t i_rating )
m_rating
=
i_rating
;
m_rating
=
i_rating
;
}
}
QString
EPGItem
::
description
()
QString
EPGItem
::
description
()
const
{
{
if
(
m_description
.
isEmpty
()
)
if
(
m_description
.
isEmpty
()
)
return
m_shortDescription
;
return
m_shortDescription
;
...
...
modules/gui/qt4/components/epg/EPGItem.hpp
View file @
cdb42f5c
...
@@ -44,12 +44,12 @@ public:
...
@@ -44,12 +44,12 @@ public:
virtual
void
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
=
0
);
virtual
void
paint
(
QPainter
*
painter
,
const
QStyleOptionGraphicsItem
*
option
,
QWidget
*
widget
=
0
);
const
QDateTime
&
start
()
const
;
const
QDateTime
&
start
()
const
;
QDateTime
end
();
QDateTime
end
()
const
;
int
duration
()
const
;
int
duration
()
const
;
const
QString
&
name
()
{
return
m_name
;
};
const
QString
&
name
()
const
{
return
m_name
;
}
QString
description
();
QString
description
()
const
;
int
rating
()
{
return
m_rating
;
}
int
rating
()
const
{
return
m_rating
;
}
bool
setData
(
vlc_epg_event_t
*
);
bool
setData
(
vlc_epg_event_t
*
);
void
setRow
(
unsigned
int
);
void
setRow
(
unsigned
int
);
void
setCurrent
(
bool
);
void
setCurrent
(
bool
);
...
...
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