A couple more Qt 4.6 compatability fixes

This commit is contained in:
Mark Watkins 2011-09-02 10:46:34 +10:00
parent c531f31243
commit e27dbb3208
2 changed files with 3 additions and 5 deletions

View File

@ -2,8 +2,6 @@
#include <QFontMetrics>
#include "gGraphView.h"
#include "SleepLib/profiles.h"
//#include <QtConcurrentRun>
#include <QElapsedTimer>
bool _graph_init=false;
QFont * defaultfont=NULL;
@ -1256,7 +1254,7 @@ void gGraphView::paintGL()
if (width()<=0) return;
if (height()<=0) return;
QElapsedTimer time;
QTime time;
time.start();
glClearColor(255,255,255,255);

View File

@ -189,7 +189,7 @@ void Oximetry::on_RunButton_toggled(bool checked)
ev_spo2->getTime().clear();
ev_spo2->setCount(0);
lasttime=QDateTime::currentMSecsSinceEpoch();
lasttime=qint64(QDateTime::currentDateTime().toTime_t())*1000L; // utc??
starttime=lasttime;
session->SetSessionID(lasttime/1000L);
@ -622,7 +622,7 @@ void Oximetry::on_ImportButton_clicked()
if (done) {
if (oneoff) bytes--; // this is retarded..
QDateTime date=QDateTime::currentDateTimeUtc();
QDateTime date=QDateTime::currentDateTime().toUTC();
SessionID sid=date.toTime_t();
session->SetSessionID(sid);
qDebug() << "Read " << bytes << "Bytes";