when an applet emits activate() the containment emits it too

svn path=/trunk/KDE/kdelibs/; revision=915759
This commit is contained in:
Marco Martin 2009-01-23 18:06:04 +00:00
parent 3b547e427b
commit 02d5bb8025

View File

@ -1173,6 +1173,7 @@ void Applet::setGlobalShortcut(const KShortcut &shortcut)
d->activationAction->setObjectName(QString("activate widget %1").arg(id())); // NO I18N
connect(d->activationAction, SIGNAL(triggered()), this, SIGNAL(activate()));
connect(this, SIGNAL(activate()), this, SLOT(setFocus()));
connect(this, SIGNAL(activate()), containment(), SIGNAL(activate()));
QList<QWidget *> widgets = d->actions.associatedWidgets();
foreach (QWidget *w, widgets) {