Plasma::WebContent::geometry should return a qrectf, not a qsizef

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800379
This commit is contained in:
Dan Meltzer 2008-04-24 02:56:48 +00:00
parent e850a93871
commit f24d1efa28
2 changed files with 4 additions and 4 deletions

View File

@ -70,13 +70,13 @@ void WebContent::setHtml(const QByteArray &html, const QUrl &baseUrl)
}
}
QSizeF WebContent::geometry() const
QRectF WebContent::geometry() const
{
if (d->loaded && d->page) {
return d->page->mainFrame()->contentsSize();
return d->page->mainFrame()->geometry();
}
return QGraphicsWidget::geometry().size();
return QGraphicsWidget::geometry();
}
void WebContent::setPage(QWebPage *page)

View File

@ -59,7 +59,7 @@ class PLASMA_EXPORT WebContent : public QGraphicsWidget
/**
* Reimplementation
*/
QSizeF geometry() const;
QRectF geometry() const;
/**
* Sets the page to use in this item. The owner of the webpage remains,