[Kst] branches/work/kst/portto4/kst/src/libkst
Adam Treat
treat at kde.org
Fri Feb 16 00:13:09 CET 2007
SVN commit 633983 by treat:
* Quick stuff for extdate/QDate fix
M +1 -1 kstdateparser.cpp
M +5 -0 kstdateparser.h
--- branches/work/kst/portto4/kst/src/libkst/kstdateparser.cpp #633982:633983
@@ -73,7 +73,7 @@
QStringList mainSplit = secondSplit[0].split(':');
ExtDateTime edt = ExtDateTime::currentDateTime();
- int offset = ExtDateTime::currentDateTime(Qt::UTC).toTime_t() - edt.toTime_t();
+ int offset = ExtDateTime::currentDateTime().toUTC().toTime_t() - edt.toTime_t();
ExtDate d = edt.date();
QTime t = edt.time();
int i = 0;
--- branches/work/kst/portto4/kst/src/libkst/kstdateparser.h #633982:633983
@@ -19,6 +19,9 @@
#define KSTDATEPARSER_H
// #include <kstextdatetime.h>
+#include <QTime>
+#include <QDate>
+#include <QDateTime>
#include "kst_export.h"
/* This is a public header */
@@ -26,6 +29,8 @@
/*FIXME Need to know if QDateTime in Qt4 will serve our needs or do we need to port
over the extdate lib*/
+ typedef QTime ExtTime;
+ typedef QDate ExtDate;
typedef QDateTime ExtDateTime;
/*
More information about the Kst
mailing list