From 96a0f7bed5a25114907868a41a2f880923ab8fb1 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Thu, 29 Dec 2011 06:15:25 +1000 Subject: [PATCH] Force scroll to bottom of Details web view when hiding/showing sessions --- daily.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daily.cpp b/daily.cpp index 28cdd0a5..0af0e82e 100644 --- a/daily.cpp +++ b/daily.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include //#include //#include @@ -362,6 +363,7 @@ void Daily::Link_clicked(const QUrl &url) // Reload day this->LoadDate(previous_date); + ui->webView->page()->mainFrame()->setScrollBarValue(Qt::Vertical, ui->webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical)); return; } else if (code=="toggleoxisession") { // Enable/Disable Oximetry session day=PROFILE.GetDay(previous_date,MT_OXIMETER); @@ -374,6 +376,7 @@ void Daily::Link_clicked(const QUrl &url) // Reload day this->LoadDate(previous_date); + ui->webView->page()->mainFrame()->setScrollBarValue(Qt::Vertical, ui->webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical)); return; } else if (code=="cpap") { day=PROFILE.GetDay(previous_date,MT_CPAP);