[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/libs/plasma/widgets
From: Marco Martin <notmart () gmail ! com>
Date: 2008-08-22 18:38:50
Message-ID: 1219430330.992429.14838.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 851011 by mart:
ask for a repaint of the area that is scrolled
M +7 -0 webcontent.cpp
M +1 -0 webcontent.h
--- trunk/KDE/kdebase/workspace/libs/plasma/widgets/webcontent.cpp #851010:851011
@@ -44,6 +44,7 @@
void loadingFinished(bool success);
void updateRequested(const QRect& dirtyRect);
+ void scrollRequested(int dx, int dy, const QRect &scrollRect);
WebContent *q;
QWebPage *page;
@@ -113,6 +114,7 @@
connect(d->page, SIGNAL(loadProgress(int)), this, \
SIGNAL(loadProgress(int)));
connect(d->page, SIGNAL(loadFinished(bool)), this, \
SLOT(loadingFinished(bool)));
connect(d->page, SIGNAL(repaintRequested(const QRect&)), this, \
SLOT(updateRequested(const QRect&))); + connect(d->page, \
SIGNAL(scrollRequested(int, int, const QRect &)), this, SLOT(scrollRequested(int, \
int, const QRect &))); }
}
@@ -361,6 +363,11 @@
}
}
+void WebContentPrivate::scrollRequested(int dx, int dy, const QRect &scrollRect)
+{
+ updateRequested(scrollRect);
+}
+
} // namespace Plasma
#include "webcontent.moc"
--- trunk/KDE/kdebase/workspace/libs/plasma/widgets/webcontent.h #851010:851011
@@ -140,6 +140,7 @@
private:
Q_PRIVATE_SLOT(d, void loadingFinished(bool success))
Q_PRIVATE_SLOT(d, void updateRequested(const QRect& dirtyRect))
+ Q_PRIVATE_SLOT(d, void scrollRequested(int dx, int dy, const QRect \
&scrollRect))
WebContentPrivate * const d;
friend class WebContentPrivate;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic