Skip to content

Commit

Permalink
Fix compilation for Qt 4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
natanojl committed Aug 13, 2012
1 parent 82318f6 commit b778ca1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mythtv/libs/libmythtv/osd.cpp
Expand Up @@ -609,7 +609,7 @@ bool OSD::DrawDirect(MythPainter* painter, QSize size, bool repaint)
bool visible = false;
bool redraw = m_Refresh;
m_Refresh = false;
QDateTime now = MythDate::current();
QTime now = MythDate::current().time();

CheckExpiry();
QMap<QString,MythScreenType*>::const_iterator it;
Expand All @@ -621,7 +621,7 @@ bool OSD::DrawDirect(MythPainter* painter, QSize size, bool repaint)
it.value()->Pulse();
if (m_Effects && m_ExpireTimes.contains(it.value()))
{
QDateTime expires = m_ExpireTimes.value(it.value());
QTime expires = m_ExpireTimes.value(it.value()).time();
int left = now.msecsTo(expires);
if (left < m_FadeTime)
(*it)->SetAlpha((255 * left) / m_FadeTime);
Expand Down Expand Up @@ -664,7 +664,7 @@ QRegion OSD::Draw(MythPainter* painter, QPaintDevice *device, QSize size,
if (!painter || !device)
return visible;

QDateTime now = MythDate::current();
QTime now = MythDate::current().time();
CheckExpiry();

// first update for alpha pulse and fade
Expand All @@ -682,7 +682,7 @@ QRegion OSD::Draw(MythPainter* painter, QPaintDevice *device, QSize size,
it.value()->Pulse();
if (m_Effects && m_ExpireTimes.contains(it.value()))
{
QDateTime expires = m_ExpireTimes.value(it.value());
QTime expires = m_ExpireTimes.value(it.value()).time();
int left = now.msecsTo(expires);
if (left < m_FadeTime)
(*it)->SetAlpha((255 * left) / m_FadeTime);
Expand Down

0 comments on commit b778ca1

Please sign in to comment.