small changes that make the code more readable
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=823769
This commit is contained in:
parent
03d7946373
commit
8a974f0f46
@ -1101,16 +1101,14 @@ void Containment::Private::positionToolBox()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
QRectF r;
|
||||
QDesktopWidget *desktop = QApplication::desktop();
|
||||
r = desktop->availableGeometry(screen);
|
||||
QRectF r = desktop->availableGeometry(screen);
|
||||
if (q->view() && !q->view()->transform().isScaling()) {
|
||||
toolBox->setPos(r.topRight());
|
||||
} else {
|
||||
toolBox->setPos(q->mapFromScene(QPointF(q->geometry().topRight())));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Containment::Private::triggerShowAddWidgets()
|
||||
|
Loading…
Reference in New Issue
Block a user