SVN_SILENT: some ws fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=841831
This commit is contained in:
parent
2e070a1307
commit
684a1b4e4e
@ -1006,7 +1006,7 @@ void Applet::setAspectRatioMode(Plasma::AspectRatioMode mode)
|
|||||||
d->aspectRatioMode = mode;
|
d->aspectRatioMode = mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Applet::registerAsDragHandle( QGraphicsItem * item )
|
void Applet::registerAsDragHandle(QGraphicsItem *item)
|
||||||
{
|
{
|
||||||
if (!item) {
|
if (!item) {
|
||||||
return;
|
return;
|
||||||
@ -1082,8 +1082,10 @@ bool Applet::sceneEventFilter( QGraphicsItem * watched, QEvent * event )
|
|||||||
{
|
{
|
||||||
switch (event->type()) {
|
switch (event->type()) {
|
||||||
case QEvent::GraphicsSceneMouseMove: {
|
case QEvent::GraphicsSceneMouseMove: {
|
||||||
//don't move when the containment is not mutable, in the rare case the containment doesn't exists consider it as mutable
|
// don't move when the containment is not mutable,
|
||||||
if ((!containment() || containment()->immutability() == Mutable) && d->registeredAsDragHandle.contains( watched )) {
|
// in the rare case the containment doesn't exists consider it as mutable
|
||||||
|
if ((!containment() || containment()->immutability() == Mutable) &&
|
||||||
|
d->registeredAsDragHandle.contains(watched)) {
|
||||||
mouseMoveEvent(static_cast<QGraphicsSceneMouseEvent*>(event));
|
mouseMoveEvent(static_cast<QGraphicsSceneMouseEvent*>(event));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user