with a minimum size policy screws a little bit less in layouts

svn path=/trunk/KDE/kdelibs/; revision=915265
This commit is contained in:
Marco Martin 2009-01-22 16:59:13 +00:00
parent 9eab58a6b2
commit 2836267745

View File

@ -146,6 +146,8 @@ PushButton::PushButton(QGraphicsWidget *parent)
setWidget(native);
native->setAttribute(Qt::WA_NoSystemBackground);
setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
d->background = new FrameSvg(this);
d->background->setImagePath("widgets/button");
d->background->setCacheAllRenderedFrames(true);