From 15531908de31974197ae408ffd1a8615dd95ca0a Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Tue, 3 Jan 2012 22:15:45 +1000 Subject: [PATCH] Hide Prescription Settings tooltips for CPAP mode, lighten highlight color --- mainwindow.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 369c75c9..7d8536e1 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1119,16 +1119,20 @@ void MainWindow::on_summaryButton_clicked() if (cpapmode>MODE_CPAP) { extratxt=" "; } else extratxt=""; - tooltip=QString("%1") - .arg(machstr) - ; + tooltip=""; + //QString("%1").arg(machstr); } QString presrel; if (rx.prelset>0) { presrel=schema::channel[CPAP_PresReliefType].option(int(rx.prelief)); presrel+=QString(" x%1").arg(rx.prelset); } else presrel="None"; - html+=QString("%3%4%5%6%7%8%9%10%11") + QString tooltipshow,tooltiphide; + if (!tooltip.isEmpty()) { + tooltipshow=QString("tooltip.show(\"%1\");").arg(tooltip); + tooltiphide="tooltip.hide();"; + } + html+=QString("%3%4%5%6%7%8%9%10%11") .arg(rx.first.toString(Qt::ISODate)) .arg(rx.last.toString(Qt::ISODate)) .arg(rx.first.toString(Qt::SystemLocaleShortDate)) @@ -1140,7 +1144,8 @@ void MainWindow::on_summaryButton_clicked() .arg(presrel) .arg(rx.min,0,'f',2) .arg(extratxt) - .arg(tooltip); + .arg(tooltipshow) + .arg(tooltiphide); } html+=""; html+=QString("The above has a threshold which excludes day counts less than %1 from the best/worst highlighting
").arg(rxthresh);