Backport rev 1001760: Remove default shortcuts for cylinder and sphere. The effect isn't enabled by default and cylinder and sphere are not so important that it qualifies for a default shortcut.
svn path=/branches/KDE/4.3/kdebase/workspace/; revision=1001761
This commit is contained in:
parent
1ccbe87438
commit
dd4ac7a947
2 changed files with 4 additions and 4 deletions
|
@ -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()));
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue