Open Source CPAP Analysis Reporter A fork of sleepyhead/sleepyhead-code
Go to file
reznet 59a0823d20 Update all calls to fromMSecsSinceEpoch to specify UTC
QT 5 changed the behavior of QDateTime::fromMSecsSinceEpoch to return the result in local time zone, whereas in QT 4, it returned UTC.  On systems that do not support time zones, the QT 5 version still returns UTC.  But for all other systems, the api change causes confusion in the SH UI because some date and time values are displayed in UTC instead of the local time zone.  This manifests itself when the user is in USA which has a negative UTC offset.  When selecting a date range to display in the overview screen, the displayed dates appear to be one day behind the selected date range.

For consistently, SH should always use UTC internally and only convert to the local time zone when displaying data to the user.  This will ensure that the time zone information is preserved correctly when the UTC offset of the user's machine changes due to DST changes or traveling.

There are a few calls to fromMSecsSinceEpoch which should be using local time, and those will be updated in future commits.
2015-08-11 15:01:24 -05:00
3rdparty Forced Preferences, Exit and About into application menu on Mac, added qtserialport source 2014-07-19 16:12:15 +10:00
history Added support for importing .spo2 files from newer CMS50F oximeters, plus a little SleepyHead history 2014-06-30 20:41:50 +10:00
innosetup Windows installer scripts 2014-05-14 19:55:03 +10:00
sleepyhead Update all calls to fromMSecsSinceEpoch to specify UTC 2015-08-11 15:01:24 -05:00
Translations Latest l;anguage files of 2015-8-3 2015-08-03 14:46:11 +02:00
.gitignore Adds .gitignore for QT 2015-08-11 13:34:12 -05:00
Bundle3rdParty Windows installer scripts 2014-05-14 19:55:03 +10:00
configure F9 and F10 hotkeys to hide daily panel sidebar and calendar 2014-08-05 07:28:27 +10:00
COPYING Standardize project modelines and include license and copyright. 2014-04-10 13:29:53 +10:00
Doxyfile Doxygen stuff is nearly all done 2011-12-19 16:46:31 +10:00
README Mega update: Summary demand loading, Overview summarychart rework, rxchanges caching 2014-09-12 00:23:08 +10:00
SleepyHeadQT.pro Initial Weinmann Support, Pressure Relief Fixes, Pressure String Fixes 2014-08-03 23:00:13 +10:00
version.sh Added simple version.sh check tool 2014-07-30 02:47:19 +10:00

SleepyHead QT port v0.9 branch

SleepyHead is cross platform, opensource sleep tracking program for reviewing CPAP and Oximetry data, 
which are devices used in the treatment of Sleep Disorders like Obstructive Sleep Apnea.

Requirements:
-------------
Qt5 SDK with webkit (opengl stuff recommended)
Linux needs libudev-dev for qserialport to compile


Building:
--------

Recommend shadow building to not cruft up the source code folder:

cd ..
mkdir build_sleepyhead
cd build_sleepyhead
qmake ../sleepyhead-code/SleepyHeadQT.pro 
make

You may need to add a -spec option to qmake to suit your platform. 
Adding -j3 speeds up the make command on a dual core or greater system.


Author: Mark Watkins <jedimark@users.sourceforge.net>
Copyright (C)2011-2014 Mark Watkins

Licence Stuff
-------------
This software is released under the GNU Public License version 3.0

Exceptions and 3rd Party Libraries:
It uses QuaZip, by Sergey A. Tachenov, which is a C++ wrapper over Gilles Vollant's ZIP/UNZIP package..
http://sourceforge.net/projects/quazip/