use resizePanel instead of resize

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800287
This commit is contained in:
Aaron J. Seigo 2008-04-23 20:42:10 +00:00
parent 753e669ab8
commit c087260537
2 changed files with 4 additions and 4 deletions

View File

@ -793,7 +793,7 @@ void Applet::setDrawStandardBackground(bool drawBackground)
if (minimumSize().expandedTo(fitSize) != minimumSize()) {
setMinimumSize(minimumSize().expandedTo(fitSize));
}
d->background->resize(boundingRect().size());
d->background->resizePanel(boundingRect().size());
}
} else if (d->background) {
int left, top, right, bottom;
@ -1530,7 +1530,7 @@ void Applet::setGeometry(const QRectF& geometry)
{
updateConstraints(Plasma::SizeConstraint);
if (d->background) {
d->background->resize(boundingRect().size());
d->background->resizePanel(boundingRect().size());
}
emit geometryChanged();
}

View File

@ -74,7 +74,7 @@ Dialog::Dialog( QWidget * parent, Qt::WindowFlags f )
d->background = new PanelSvg(this);
d->background->setImagePath("dialogs/background");
d->background->setEnabledBorders(PanelSvg::AllBorders);
d->background->resize(size());
d->background->resizePanel(size());
connect(d->background, SIGNAL(repaintNeeded()), this, SLOT(update()));
@ -99,7 +99,7 @@ void Dialog::paintEvent(QPaintEvent *e)
void Dialog::resizeEvent(QResizeEvent *e)
{
d->background->resize(e->size());
d->background->resizePanel(e->size());
setMask(d->background->mask());
}