Fix LineEdit::geometry(). Returned ectangle should be in parent coordinates.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=699255
This commit is contained in:
Robert Knight 2007-08-12 13:13:06 +00:00
parent 17e17536b1
commit 1f99ac776a

View File

@ -170,7 +170,7 @@ qreal LineEdit::widthForHeight(qreal h) const
QRectF LineEdit::geometry() const QRectF LineEdit::geometry() const
{ {
return boundingRect().toRect(); return QRectF(pos(),boundingRect().size());
} }
void LineEdit::setGeometry(const QRectF& geometry) void LineEdit::setGeometry(const QRectF& geometry)