Add overview button to welcome page

This commit is contained in:
Mark Watkins 2018-04-25 14:33:45 +10:00
parent 887273849f
commit 73b87f870e
4 changed files with 8 additions and 1 deletions

View File

@ -53,5 +53,6 @@
<file>icons/prs1_960.png</file>
<file>icons/daily.png</file>
<file>icons/dv64.png</file>
<file>icons/overview-page.png</file>
</qresource>
</RCC>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -98,7 +98,7 @@ QString GenerateWelcomeHTML()
"<table cellpadding=4 border=0>";
int cols=2;
if (havecpapdata || haveoximeterdata) cols=5;
if (havecpapdata || haveoximeterdata) cols=6;
html+=QString("<tr><td colspan=%1 align=center>").arg(cols)+
@ -126,7 +126,13 @@ QString GenerateWelcomeHTML()
" <table class=curved cellpadding=4>"
" <tr><td align=center onmouseover='ChangeColor(this, \"#eeeeee\");' onmouseout='ChangeColor(this, \"#ffffff\");' onclick='alert(\"daily=1\");'><font size=+1><img src='qrc:/icons/daily.png' width=128px><br/>" + QObject::tr("View<br/>Daily")+"</font></td></tr>"
" </table>"
"</td>"
"<td align=center>"
" <table class=curved cellpadding=4>"
" <tr><td align=center onmouseover='ChangeColor(this, \"#eeeeee\");' onmouseout='ChangeColor(this, \"#ffffff\");' onclick='alert(\"overview=1\");'><font size=+1><img src='qrc:/icons/overview-page.png' width=128px><br/>" + QObject::tr("View<br/>Overview")+"</font></td></tr>"
" </table>"
"</td>";
}
html += "</tr></table>";