Merge remote branch 'origin/KDE/4.7' into frameworks

Conflicts:
	kio/kfile/kfilemetadatareaderprocess.cpp
This commit is contained in:
Aaron Seigo 2011-11-28 11:00:27 +01:00
commit 5727ade508
3 changed files with 8 additions and 5 deletions

View File

@ -24,7 +24,7 @@ Comment[fi]=Skriptauskielituki Plasmalle
Comment[fr]=Langage de script d'extension pour Plasma
Comment[fy]=Scripting taal taheaksel foar Plasma
Comment[ga]=Eisínteacht teanga scriptithe le haghaidh Plasma
Comment[gl]=Engadido de linguaxe de scripts para o Plasma
Comment[gl]=Extensión de linguaxe de scripts para o Plasma
Comment[gu]= િ
Comment[he]=הרחבת שפת תסריטים של Plasma
Comment[hne]= िि

View File

@ -335,10 +335,10 @@ void DataEngine::removeAllSources()
while (it.hasNext()) {
it.next();
Plasma::DataContainer *s = it.value();
emit sourceRemoved(it.key());
it.remove();
s->disconnect(this);
delete s;
s->deleteLater();
emit sourceRemoved(it.key());
}
}
@ -693,6 +693,7 @@ void DataEnginePrivate::sourceDestroyed(QObject *object)
while (it != sources.end()) {
if (it.value() == object) {
sources.erase(it);
emit q->sourceRemoved(object->objectName());
break;
}
++it;

View File

@ -165,10 +165,12 @@ void PopupApplet::setGraphicsWidget(QGraphicsWidget *graphicsWidget)
if (d->graphicsWidget) {
if (d->dialogPtr) {
d->dialogPtr.data()->setGraphicsWidget(graphicsWidget);
} else {
} else if (layout()) {
QGraphicsLinearLayout *lay = static_cast<QGraphicsLinearLayout *>(layout());
lay->removeAt(0);
lay->addItem(graphicsWidget);
if (graphicsWidget) {
lay->addItem(graphicsWidget);
}
}
}