From 1ce315e9224bad4d69b8666e7469119e8b426a42 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sat, 20 Aug 2011 18:20:22 +1000 Subject: [PATCH] More ScrollArea hacks --- daily.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/daily.cpp b/daily.cpp index 2c5cfca8..095645c3 100644 --- a/daily.cpp +++ b/daily.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include "SleepLib/session.h" #include "Graphs/graphdata_custom.h" @@ -43,15 +44,17 @@ MyScrollArea::~MyScrollArea() void MyScrollArea::scrollContentsBy(int dx, int dy) { QScrollArea::scrollContentsBy(dx,dy); + widget()->repaint(horizontalScrollBar()->value(), verticalScrollBar()->value(), width(), height()); + //m_daily->RedrawGraphs(); //gGraphWindow g; #ifdef Q_WS_MAC - if (timer->isActive()) timer->stop(); + /*if (timer->isActive()) timer->stop(); timer->setSingleShot(true); timer->setInterval(200); connect(timer,SIGNAL(timeout()),SLOT(UpdateGraphs())); timer->start(); - m_time.start(); + m_time.start(); */ //m_daily->RedrawGraphs(); #endif }