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:
parent
e850a93871
commit
f24d1efa28
@ -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)
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user