mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 11:10:44 +00:00
Force scroll to bottom of Details web view when hiding/showing sessions
This commit is contained in:
parent
48777787b1
commit
96a0f7bed5
@ -15,6 +15,7 @@
|
|||||||
#include <QResizeEvent>
|
#include <QResizeEvent>
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
#include <QSpacerItem>
|
#include <QSpacerItem>
|
||||||
|
#include <QWebFrame>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
//#include <QPrinter>
|
//#include <QPrinter>
|
||||||
//#include <QProgressBar>
|
//#include <QProgressBar>
|
||||||
@ -362,6 +363,7 @@ void Daily::Link_clicked(const QUrl &url)
|
|||||||
|
|
||||||
// Reload day
|
// Reload day
|
||||||
this->LoadDate(previous_date);
|
this->LoadDate(previous_date);
|
||||||
|
ui->webView->page()->mainFrame()->setScrollBarValue(Qt::Vertical, ui->webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical));
|
||||||
return;
|
return;
|
||||||
} else if (code=="toggleoxisession") { // Enable/Disable Oximetry session
|
} else if (code=="toggleoxisession") { // Enable/Disable Oximetry session
|
||||||
day=PROFILE.GetDay(previous_date,MT_OXIMETER);
|
day=PROFILE.GetDay(previous_date,MT_OXIMETER);
|
||||||
@ -374,6 +376,7 @@ void Daily::Link_clicked(const QUrl &url)
|
|||||||
|
|
||||||
// Reload day
|
// Reload day
|
||||||
this->LoadDate(previous_date);
|
this->LoadDate(previous_date);
|
||||||
|
ui->webView->page()->mainFrame()->setScrollBarValue(Qt::Vertical, ui->webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical));
|
||||||
return;
|
return;
|
||||||
} else if (code=="cpap") {
|
} else if (code=="cpap") {
|
||||||
day=PROFILE.GetDay(previous_date,MT_CPAP);
|
day=PROFILE.GetDay(previous_date,MT_CPAP);
|
||||||
|
Loading…
Reference in New Issue
Block a user