don't check the view for regular applets; the problem only affect containments

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=828205
This commit is contained in:
Aaron J. Seigo 2008-07-04 21:48:25 +00:00
parent f203f0ffff
commit a404763830

View File

@ -1132,7 +1132,7 @@ void Applet::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
void Applet::mousePressEvent(QGraphicsSceneMouseEvent *event)
{
if (view() && !view()->transform().isScaling()) {
if (!isContainment() || (view() && !view()->transform().isScaling())) {
setFocus(Qt::MouseFocusReason);
}
QGraphicsWidget::mousePressEvent(event);