add context

svn path=/trunk/KDE/kdebase/workspace/; revision=879207
This commit is contained in:
Albert Astals Cid 2008-11-02 17:39:23 +00:00
parent 6649c416c1
commit 9c529cce52
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ SharpenEffect::SharpenEffect() : QObject(), ShaderEffect("sharpen")
{
KActionCollection* actionCollection = new KActionCollection( this );
KAction* a = (KAction*)actionCollection->addAction( "Sharpen" );
a->setText( i18n("Toggle Sharpen Effect" ));
a->setText( i18nc("@action Enables/Disables an effect that makes windows more sharp", "Toggle Sharpen Effect" ));
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::META + Qt::Key_S));
connect(a, SIGNAL(triggered(bool)), this, SLOT(toggle()));
}

View file

@ -43,7 +43,7 @@ SharpenEffectConfig::SharpenEffectConfig(QWidget* parent, const QVariantList& ar
QVBoxLayout* layout = new QVBoxLayout(this);
KActionCollection* actionCollection = new KActionCollection( this, componentData() );
KAction* a = static_cast<KAction*>(actionCollection->addAction( "Sharpen" ));
a->setText( i18n("Toggle Sharpen Effect" ));
a->setText( i18nc("@action Enables/Disables an effect that makes windows more sharp", "Toggle Sharpen Effect" ));
a->setProperty("isConfigurationAction", true);
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::META + Qt::Key_S));