Merge remote-tracking branch 'origin/master' into libplasma2
Conflicts: plasma/containment.cpp plasma/package.cpp plasma/packagestructure.cpp plasma/private/package_p.h plasma/scripting/scriptengine.cpp
This commit is contained in:
commit
bd10c7175e
@ -1620,9 +1620,11 @@ void Applet::unregisterAsDragHandle(QGraphicsItem *item)
|
||||
}
|
||||
|
||||
if (d->registeredAsDragHandle.remove(item)) {
|
||||
if (item != this) {
|
||||
item->removeSceneEventFilter(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool Applet::isRegisteredAsDragHandle(QGraphicsItem *item)
|
||||
{
|
||||
@ -1750,7 +1752,6 @@ bool Applet::sceneEventFilter(QGraphicsItem *watched, QEvent *event)
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (event->type()) {
|
||||
@ -2346,6 +2347,9 @@ QVariant Applet::itemChange(GraphicsItemChange change, const QVariant &value)
|
||||
break;
|
||||
case ItemParentHasChanged:
|
||||
{
|
||||
if (isContainment()) {
|
||||
removeSceneEventFilter(this);
|
||||
} else {
|
||||
Containment *c = containment();
|
||||
if (c && c->containmentType() == Containment::DesktopContainment) {
|
||||
installSceneEventFilter(this);
|
||||
@ -2353,6 +2357,7 @@ QVariant Applet::itemChange(GraphicsItemChange change, const QVariant &value)
|
||||
removeSceneEventFilter(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ItemPositionHasChanged:
|
||||
emit geometryChanged();
|
||||
|
@ -17,6 +17,7 @@ Description[de]=Ein Protokoll für Plasma-Dienste
|
||||
Description[el]=Ένα πρωτόκολλο υπηρεσιών Plasma
|
||||
Description[es]=Un protocolo para los servicios de Plasma
|
||||
Description[et]=Plasma teenuste protokoll
|
||||
Description[fi]=Plasma-palvelujen protokolla
|
||||
Description[hr]=Protokol za servise u Plasmi
|
||||
Description[hu]=Protokoll a Plazma-szolgáltatáshoz
|
||||
Description[ia]=un protocollo per servicios de Plasma
|
||||
|
@ -78,5 +78,5 @@ private:
|
||||
|
||||
} // namespace Plasma
|
||||
|
||||
Q_DECLARE_METATYPE(Plasma::WallpaperRenderRequest);
|
||||
Q_DECLARE_METATYPE(Plasma::WallpaperRenderRequest)
|
||||
#endif // PLASMA_WALLPAPERRENDERTHREAD_P_H
|
||||
|
Loading…
Reference in New Issue
Block a user