return a geometry that makes sense or will have layouts problems forever

(actually just always return QGraphicsWidget::geometry() would make even more sense)

svn path=/trunk/KDE/kdelibs/; revision=1087924
This commit is contained in:
Marco Martin 2010-02-09 20:07:38 +00:00
parent a43026ec4e
commit 1aa1d4b2f0

View File

@ -124,7 +124,7 @@ QString WebView::html() const
QRectF WebView::geometry() const QRectF WebView::geometry() const
{ {
if (d->loaded && d->page) { if (d->loaded && d->page) {
return d->page->mainFrame()->geometry(); return QRectF(pos(), d->page->mainFrame()->geometry().size());
} }
return QGraphicsWidget::geometry(); return QGraphicsWidget::geometry();