mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +00:00
refresh Overview When Session Enable Toggled Day One Issue
This commit is contained in:
parent
66f50cda66
commit
e62066a682
@ -7,7 +7,7 @@
|
|||||||
* License. See the file COPYING in the main directory of the source code
|
* License. See the file COPYING in the main directory of the source code
|
||||||
* for more details. */
|
* for more details. */
|
||||||
|
|
||||||
#define TEST_MACROS_ENABLED
|
#define TEST_MACROS_ENABLEDoff
|
||||||
#include <test_macros.h>
|
#include <test_macros.h>
|
||||||
|
|
||||||
#include <QTextCharFormat>
|
#include <QTextCharFormat>
|
||||||
@ -602,6 +602,7 @@ void Daily::Link_clicked(const QUrl &url)
|
|||||||
|
|
||||||
// Reload day
|
// Reload day
|
||||||
LoadDate(previous_date);
|
LoadDate(previous_date);
|
||||||
|
mainwin->getOverview()->graphView()->dataChanged();
|
||||||
// webView->page()->mainFrame()->setScrollBarValue(Qt::Vertical, webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical)-i);
|
// webView->page()->mainFrame()->setScrollBarValue(Qt::Vertical, webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical)-i);
|
||||||
} else if (code=="toggleoxisession") { // Enable/Disable Oximetry session
|
} else if (code=="toggleoxisession") { // Enable/Disable Oximetry session
|
||||||
day=p_profile->GetDay(previous_date,MT_OXIMETER);
|
day=p_profile->GetDay(previous_date,MT_OXIMETER);
|
||||||
@ -614,6 +615,7 @@ void Daily::Link_clicked(const QUrl &url)
|
|||||||
|
|
||||||
// Reload day
|
// Reload day
|
||||||
LoadDate(previous_date);
|
LoadDate(previous_date);
|
||||||
|
mainwin->getOverview()->graphView()->dataChanged();
|
||||||
// webView->page()->mainFrame()->setScrollBarValue(Qt::Vertical, webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical)-i);
|
// webView->page()->mainFrame()->setScrollBarValue(Qt::Vertical, webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical)-i);
|
||||||
} else if (code=="togglestagesession") { // Enable/Disable Sleep Stage session
|
} else if (code=="togglestagesession") { // Enable/Disable Sleep Stage session
|
||||||
day=p_profile->GetDay(previous_date,MT_SLEEPSTAGE);
|
day=p_profile->GetDay(previous_date,MT_SLEEPSTAGE);
|
||||||
@ -622,6 +624,7 @@ void Daily::Link_clicked(const QUrl &url)
|
|||||||
if (!sess) return;
|
if (!sess) return;
|
||||||
sess->setEnabled(!sess->enabled());
|
sess->setEnabled(!sess->enabled());
|
||||||
LoadDate(previous_date);
|
LoadDate(previous_date);
|
||||||
|
mainwin->getOverview()->graphView()->dataChanged();
|
||||||
} else if (code=="togglepositionsession") { // Enable/Disable Position session
|
} else if (code=="togglepositionsession") { // Enable/Disable Position session
|
||||||
day=p_profile->GetDay(previous_date,MT_POSITION);
|
day=p_profile->GetDay(previous_date,MT_POSITION);
|
||||||
if (!day) return;
|
if (!day) return;
|
||||||
@ -629,6 +632,7 @@ void Daily::Link_clicked(const QUrl &url)
|
|||||||
if (!sess) return;
|
if (!sess) return;
|
||||||
sess->setEnabled(!sess->enabled());
|
sess->setEnabled(!sess->enabled());
|
||||||
LoadDate(previous_date);
|
LoadDate(previous_date);
|
||||||
|
mainwin->getOverview()->graphView()->dataChanged();
|
||||||
} else if (code=="cpap") {
|
} else if (code=="cpap") {
|
||||||
day=p_profile->GetDay(previous_date,MT_CPAP);
|
day=p_profile->GetDay(previous_date,MT_CPAP);
|
||||||
if (day) {
|
if (day) {
|
||||||
|
Loading…
Reference in New Issue
Block a user