summaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorunknown <Roopesh Chander@.(none)>2009-11-12 18:35:52 +0530
committerunknown <Roopesh Chander@.(none)>2009-11-12 18:35:52 +0530
commit2aa351a1c73e589b4d123d1cbc35346da1858b0e (patch)
treeeffb9df0b98d1c6f1d995d107b1bf31050556fd0 /mainwindow.cpp
parentf32b5bb5f1e4ed79d420b9e97970ef0e7acf1687 (diff)
setPageSize() is rendered unnecessary by the previous commit
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index f1f804b..593c756 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -73,7 +73,6 @@ void MainWindow::addScrap(QUrl url, QSize pageSize,
qreal xScale, qreal yScale,
int refreshIntervalMins) {
WebScrap *webscrap = new WebScrap(url, pageSize, scrapRect);
- webscrap->setPageSize(pageSize);
webscrap->setRefreshInterval(refreshIntervalMins * 60 * 1000); // milliseconds
WebScrapContainer *container = new WebScrapContainer(webscrap, scene(), xScale, yScale);
container->setPos(position - webscrap->pos());
@@ -375,7 +374,7 @@ void MainWindow::saveSettings() {
scrap = container->webScrap();
if (scrap) {
m_settings->setValue("url", scrap->url().toString());
- m_settings->setValue("pageSize", scrap->pageSize());
+ m_settings->setValue("pageSize", scrap->page()->viewportSize());
m_settings->setValue("topLeft", scrap->scrapRect().topLeft());
m_settings->setValue("size", scrap->scrapRect().size());
QPointF containerPos = container->enterAnimation()->endValue().toPointF();