diff --git a/report.cpp b/report.cpp index b871e4d4..858b075b 100644 --- a/report.cpp +++ b/report.cpp @@ -114,12 +114,11 @@ void Report::GenerateReport(QDate start, QDate end) QString html="" "" "" - "
" - "" "" "
"; - html+="

CPAP Overview

"; - html+="
"; - - //html+="This is a temporary scratch pad tab so I can see what's going on while designing printing code. These graphs are images, and not controllable."; + "
" + "" + html+="

CPAP Overview

" + "" + "" + "
" + ""; if (!((*profile).Exists("FirstName") && (*profile).Exists("LastName"))) html+="

Please edit your profile

"; else { html+=""; } @@ -133,7 +132,8 @@ void Report::GenerateReport(QDate start, QDate end) if ((*profile).Exists("EmailAddress") && !(*profile)["EmailAddress"].toString().isEmpty()) { html+=""; } - html+="
Name:"+(*profile)["FirstName"].toString()+" "+(*profile)["LastName"].toString()+"
Email:"+(*profile)["EmailAddress"].toString()+"
"; + html+="
"; if ((*profile).Exists("Gender")) { QString gender=(*profile)["Gender"].toBool() ? "Male" : "Female"; html+=""; @@ -156,11 +156,13 @@ void Report::GenerateReport(QDate start, QDate end) html+=""; } - html+="
Gender:"+gender+"
"; - html+="

SleepyHead v"+pref["VersionString"].toString()+"
http://sleepyhead.sf.net
" + "
" + "
SleepyHead v"+pref["VersionString"].toString()+ + "
http://sleepyhead.sf.net
" "Reporting from "+startDate.toString()+" to "+endDate.toString()+"" - "
" + "
" "
 
";