KRUSH: free layout needs a proper sizeHint
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=735119
This commit is contained in:
parent
6553519076
commit
4bff9b6912
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user