summaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorunknown <Roopesh Chander@.(none)>2009-11-12 18:28:42 +0530
committerunknown <Roopesh Chander@.(none)>2009-11-12 18:28:45 +0530
commitf32b5bb5f1e4ed79d420b9e97970ef0e7acf1687 (patch)
tree9d66a8dd8513db6167ce0aaa9b52bfb17211d722 /mainwindow.cpp
parentc806601e0f8a7c81aeb2321bf331090011c187b2 (diff)
initialize page viewport and geometry on creation.
change geometry only when required. the added scrap's initial scroll position is now accurate.
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 7849bc2..f1f804b 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -72,7 +72,7 @@ void MainWindow::addScrap(QUrl url, QSize pageSize,
QRect scrapRect, QPoint position,
qreal xScale, qreal yScale,
int refreshIntervalMins) {
- WebScrap *webscrap = new WebScrap(url, scrapRect);
+ WebScrap *webscrap = new WebScrap(url, pageSize, scrapRect);
webscrap->setPageSize(pageSize);
webscrap->setRefreshInterval(refreshIntervalMins * 60 * 1000); // milliseconds
WebScrapContainer *container = new WebScrapContainer(webscrap, scene(), xScale, yScale);