one less string freeze todo

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833969
This commit is contained in:
Aaron J. Seigo 2008-07-17 18:25:50 +00:00
parent abf220d8db
commit 9fce6a940f

View File

@ -952,9 +952,8 @@ void Applet::setGlobalShortcut(const KShortcut &shortcut)
{ {
if (!d->activationAction) { if (!d->activationAction) {
d->activationAction = new KAction(this); d->activationAction = new KAction(this);
//TODO: add better text when we aren't in a string freeze d->activationAction->setText(i18n("Activate %1 Widget").arg(name()));
d->activationAction->setText(name()); d->activationAction->setObjectName(QString("activate widget %1").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()));