Image 01
profile-image

davgarcia

David Garcí­a Murcia, Spain
test
bkodama

Plasma 4 Extensions 25 comments

Score 75.3%
Nov 18 2010
Hi,

I managed to compile it in Ubuntu Lucid (Qt-4.6) by replacing the call to QDateTime::msecsTo() with something a bit more complex, but it should work.
Maybe someone else can review the new code?

This is the unified diff between the two versions:

--- bkodama-0.3/src/bkodama.cpp 2010-11-13 23:04:54.000000000 +0100
+++ bkodama-0.3.1/src/bkodama.cpp 2010-11-18 09:13:43.882196957 +0100
@@ -732,7 +732,11 @@

if (time.time().hour() != timeTo.time().hour())
{
- qint64 msecsTo = time.msecsTo(QDateTime(timeTo.date(), QTime(timeTo.time().hour(), 0)));
+ qint64 msecsTo = time.time().msecsTo(QTime(timeTo.time().hour(), 0));
+ if (time.date().day() != timeTo.date().day()) {
+ msecsTo += 24 * 60 * 60 * 1000;
+ }
m_animation = SpecialFadeIn;
m_alphaModifier = (float)cTimerFast * 100.0f / (float)cFadeInTime;
m_alpha = 0;

The easiest way to apply the diff is to copy it to a file diff.patch and from the bkodama-0.3 directory run:
cat path-to-diff.patch | patch -p1 -u
- Nov 18 2010
Hi,

First of all thanks very much for the update!

Unfortunately, I'm also getting the same error others have reported in Ubuntu Lucid:

/home/david/bkodama-0.3/src/bkodama.cpp: In member function ‘void bkodamaapplet::checkSpecialEventTime(int)’:
/home/david/bkodama-0.3/src/bkodama.cpp:735: error: ‘class QDateTime’ has no member named ‘msecsTo’

Any ideas on how to fix it? - Nov 18 2010
Crystal Monitor

Plasma 4 Extensions
by smihael

Score 50.0%
Jun 08 2010
bkodama

Plasma 4 Extensions
by ibuscher

Score 75.3%
9   Nov 18 2010