diff options
author | Roopesh Chander <roop@forwardbias.in> | 2009-11-11 17:01:09 +0530 |
---|---|---|
committer | Roopesh Chander <roop@forwardbias.in> | 2009-11-11 17:01:09 +0530 |
commit | a05ab65b64206ab7466342b55df71361d84b4da8 (patch) | |
tree | 7c58fbbbb71d4ff7293c38ec30392053377c6a73 /webscrap.cpp | |
parent | 6a6d7ee7611c6a0b2e4d851d1c7ac2f120591d73 (diff) |
remove calls to obsolete methods: progress() and setInteractive()
Diffstat (limited to 'webscrap.cpp')
-rw-r--r-- | webscrap.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/webscrap.cpp b/webscrap.cpp index 9bb9ce5..cf2fcfd 100644 --- a/webscrap.cpp +++ b/webscrap.cpp @@ -47,7 +47,7 @@ WebScrap::WebScrap(QUrl url, QRect scrapRect, QGraphicsItem * parent) void WebScrap::setScrapRect(QRect r) { m_scrapRect = r; setGeometry(QRectF(pos(), r.size())); - if (progress() == 1) + // if (progress() == 1) page()->mainFrame()->setScrollPosition(scrapRect().topLeft()); } @@ -79,7 +79,7 @@ const QTimer* WebScrap::refreshTimer() const { void WebScrap::setDimensionsFixed(bool fixed) { m_isDimensionsFixed = fixed; - setInteractive(fixed); + // setInteractive(fixed); update(); } @@ -109,7 +109,7 @@ void WebScrap::onRefresh() { m_webshot.fill(Qt::transparent); QPainter painter(&m_webshot); page()->mainFrame()->render(&painter); - if (progress() == 1) + // if (progress() == 1) reload(); } @@ -136,7 +136,7 @@ void WebScrap::paint(QPainter* painter, const QStyleOptionGraphicsItem* options, painter->setPen(Qt::NoPen); painter->drawPath(clipPath); painter->setClipPath(clipPath); - if (progress() >= 1) { + if (1) { // if (progress() >= 1) { painter->fillRect(options->rect, Qt::white); QGraphicsWebView::paint(painter, options, widget); painter->save(); |