diff --git a/effects/cube/cube.cpp b/effects/cube/cube.cpp index 13163d2508..9cdcdc88c5 100644 --- a/effects/cube/cube.cpp +++ b/effects/cube/cube.cpp @@ -212,11 +212,11 @@ void CubeEffect::loadConfig( QString config ) cubeShortcut = cubeAction->globalShortcut(); KAction* cylinderAction = static_cast< KAction* >( actionCollection->addAction( "Cylinder" )); cylinderAction->setText( i18n("Desktop Cylinder" )); - cylinderAction->setGlobalShortcut( KShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_F11 )); + cylinderAction->setGlobalShortcut( KShortcut(), KAction::ActiveShortcut); cylinderShortcut = cylinderAction->globalShortcut(); KAction* sphereAction = static_cast< KAction* >( actionCollection->addAction( "Sphere" )); sphereAction->setText( i18n("Desktop Sphere" )); - sphereAction->setGlobalShortcut( KShortcut( Qt::CTRL + Qt::META + Qt::Key_F11 )); + sphereAction->setGlobalShortcut( KShortcut(), KAction::ActiveShortcut); sphereShortcut = sphereAction->globalShortcut(); connect( cubeAction, SIGNAL( triggered( bool )), this, SLOT( toggleCube())); connect( cylinderAction, SIGNAL( triggered( bool )), this, SLOT( toggleCylinder())); diff --git a/effects/cube/cube_config.cpp b/effects/cube/cube_config.cpp index bf8cdbeda5..9bad59550b 100644 --- a/effects/cube/cube_config.cpp +++ b/effects/cube/cube_config.cpp @@ -65,11 +65,11 @@ CubeEffectConfig::CubeEffectConfig(QWidget* parent, const QVariantList& args) : KAction* cylinderAction = (KAction*) m_actionCollection->addAction( "Cylinder" ); cylinderAction->setText( i18n("Desktop Cylinder" )); cylinderAction->setProperty("isConfigurationAction", true); - cylinderAction->setGlobalShortcut( KShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_F11 )); + cylinderAction->setGlobalShortcut( KShortcut(), KAction::ActiveShortcut); KAction* sphereAction = (KAction*) m_actionCollection->addAction( "Sphere" ); sphereAction->setText( i18n("Desktop Sphere" )); sphereAction->setProperty("isConfigurationAction", true); - sphereAction->setGlobalShortcut( KShortcut( Qt::CTRL + Qt::META + Qt::Key_F11 )); + sphereAction->setGlobalShortcut( KShortcut(), KAction::ActiveShortcut); m_ui->editor->addCollection(m_actionCollection);