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[fr]=Langage de script d'extension pour Plasma
Comment[fy]=Scripting taal taheaksel foar Plasma Comment[fy]=Scripting taal taheaksel foar Plasma
Comment[ga]=Eisínteacht teanga scriptithe le haghaidh 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[gu]= િ
Comment[he]=הרחבת שפת תסריטים של Plasma Comment[he]=הרחבת שפת תסריטים של Plasma
Comment[hne]= िि Comment[hne]= िि

View File

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

View File

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