revert my last commit; this does work after all, sorry.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=815996
This commit is contained in:
Chani Armitage 2008-06-03 00:24:51 +00:00
parent 4f2624b36a
commit 8e9bd0ff09

View File

@ -944,8 +944,11 @@ void Applet::setGlobalShortcut(const KShortcut &shortcut)
d->activationAction->setObjectName(QString("Activate %1 Widget").arg(name())); // NO I18N d->activationAction->setObjectName(QString("Activate %1 Widget").arg(name())); // NO I18N
connect(d->activationAction, SIGNAL(triggered()), this, SIGNAL(activate())); connect(d->activationAction, SIGNAL(triggered()), this, SIGNAL(activate()));
connect(this, SIGNAL(activate()), this, SLOT(setFocus())); connect(this, SIGNAL(activate()), this, SLOT(setFocus()));
//TODO: when local shortcuts are possible, we'll need to always be associated with the right
//widget QList<QWidget *> widgets = d->actions.associatedWidgets();
foreach (QWidget *w, widgets) {
w->addAction(d->activationAction);
}
} }
d->activationAction->setGlobalShortcut(shortcut); d->activationAction->setGlobalShortcut(shortcut);