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:
parent
4f2624b36a
commit
8e9bd0ff09
@ -944,8 +944,11 @@ void Applet::setGlobalShortcut(const KShortcut &shortcut)
|
||||
d->activationAction->setObjectName(QString("Activate %1 Widget").arg(name())); // NO I18N
|
||||
connect(d->activationAction, SIGNAL(triggered()), this, SIGNAL(activate()));
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user