More tabs that have been eradicated from plasma.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=797218
This commit is contained in:
Dan Meltzer 2008-04-15 02:47:16 +00:00
parent 6a13421595
commit 5dec314c85

View File

@ -726,14 +726,14 @@ void Applet::setDrawStandardBackground(bool drawBackground)
if (drawBackground) {
if (!d->background) {
d->background = new Plasma::SvgPanel("widgets/background");
d->background->setBorderFlags(Plasma::SvgPanel::DrawAllBorders);
d->background->setBorderFlags(Plasma::SvgPanel::DrawAllBorders);
int left, top, right, bottom;
d->getBorderSize(left, top, right, bottom);
QSizeF fitSize(left + right, top + bottom);
if (minimumSize().expandedTo(fitSize) != minimumSize()) {
setMinimumSize(minimumSize().expandedTo(fitSize));
}
d->background->resize(boundingRect().size());
QSizeF fitSize(left + right, top + bottom);
if (minimumSize().expandedTo(fitSize) != minimumSize()) {
setMinimumSize(minimumSize().expandedTo(fitSize));
}
d->background->resize(boundingRect().size());
}
} else if (d->background) {
delete d->background;