KRUSH: free layout needs a proper sizeHint

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=735119
This commit is contained in:
Aaron J. Seigo 2007-11-10 23:13:42 +00:00
parent 6553519076
commit 4bff9b6912

View File

@ -18,11 +18,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <plasma/plasma_export.h>
#include <plasma/widgets/layout.h>
#include "freelayout.h"
#include <KDebug>
#include <plasma/widgets/layout.h>
namespace Plasma
{
@ -97,6 +98,10 @@ QRectF FreeLayout::geometry() const
QSizeF FreeLayout::sizeHint() const
{
if (parent()) {
return parent()->geometry().size();
}
return maximumSize();
}