SVN_SILENT: ws

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864141
This commit is contained in:
Aaron J. Seigo 2008-09-24 02:49:21 +00:00
parent 94b4c8cfa7
commit d9a206dc22

View File

@ -369,8 +369,7 @@ void Corona::addOffscreenWidget(QGraphicsWidget *widget)
//check if the layout allready contains this widget. //check if the layout allready contains this widget.
//XXX: duplicated from removeOffscreenWidget() //XXX: duplicated from removeOffscreenWidget()
for (int i = 0; i < d->offscreenLayout->count(); i++) { for (int i = 0; i < d->offscreenLayout->count(); i++) {
QGraphicsWidget *foundWidget = QGraphicsWidget *foundWidget = dynamic_cast<QGraphicsWidget*>(d->offscreenLayout->itemAt(i));
dynamic_cast<QGraphicsWidget*>(d->offscreenLayout->itemAt(i));
if (foundWidget == widget) { if (foundWidget == widget) {
return; return;
} }
@ -388,8 +387,7 @@ void Corona::removeOffscreenWidget(QGraphicsWidget *widget)
} }
for (int i = 0; i < d->offscreenLayout->count(); i++) { for (int i = 0; i < d->offscreenLayout->count(); i++) {
QGraphicsWidget *foundWidget = QGraphicsWidget *foundWidget = dynamic_cast<QGraphicsWidget*>(d->offscreenLayout->itemAt(i));
dynamic_cast<QGraphicsWidget*>(d->offscreenLayout->itemAt(i));
if (foundWidget == widget) { if (foundWidget == widget) {
d->offscreenLayout->removeAt(i); d->offscreenLayout->removeAt(i);
} }