Less random shortcuts for some effects.

svn path=/trunk/KDE/kdebase/workspace/; revision=756771
icc-effect-5.14.5
Luboš Luňák 2008-01-03 18:51:15 +00:00
parent 8c73958364
commit c39c81d6a9
8 changed files with 8 additions and 8 deletions

View File

@ -37,7 +37,7 @@ InvertEffect::InvertEffect() : QObject(), ShaderEffect("invert")
KActionCollection* actionCollection = new KActionCollection( this );
KAction* a = (KAction*)actionCollection->addAction( "Invert" );
a->setText( i18n("Toggle Invert effect" ));
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::Key_F6));
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::META + Qt::Key_I));
connect(a, SIGNAL(triggered(bool)), this, SLOT(toggle()));
}

View File

@ -46,7 +46,7 @@ InvertEffectConfig::InvertEffectConfig(QWidget* parent, const QVariantList& args
KActionCollection* actionCollection = new KActionCollection( this, KComponentData("kwin") );
KAction* a = static_cast<KAction*>(actionCollection->addAction( "Invert" ));
a->setText( i18n("Toggle Invert effect" ));
a->setGlobalShortcut( KShortcut( Qt::CTRL + Qt::Key_F6 ));
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::META + Qt::Key_I));
mShortcutEditor = new KShortcutsEditor(actionCollection, this,
KShortcutsEditor::GlobalAction, KShortcutsEditor::LetterShortcutsDisallowed);

View File

@ -38,7 +38,7 @@ SharpenEffect::SharpenEffect() : QObject(), ShaderEffect("sharpen")
KActionCollection* actionCollection = new KActionCollection( this );
KAction* a = (KAction*)actionCollection->addAction( "Sharpen" );
a->setText( i18n("Toggle Sharpen effect" ));
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::Key_F7));
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::META + Qt::Key_S));
connect(a, SIGNAL(triggered(bool)), this, SLOT(toggle()));
}

View File

@ -46,7 +46,7 @@ SharpenEffectConfig::SharpenEffectConfig(QWidget* parent, const QVariantList& ar
KActionCollection* actionCollection = new KActionCollection( this, KComponentData("kwin") );
KAction* a = static_cast<KAction*>(actionCollection->addAction( "Sharpen" ));
a->setText( i18n("Toggle Sharpen effect" ));
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::Key_F7));
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::META + Qt::Key_S));
mShortcutEditor = new KShortcutsEditor(actionCollection, this,
KShortcutsEditor::GlobalAction, KShortcutsEditor::LetterShortcutsDisallowed);

View File

@ -38,7 +38,7 @@ ThumbnailAsideEffect::ThumbnailAsideEffect()
KActionCollection* actionCollection = new KActionCollection( this );
KAction* a = (KAction*)actionCollection->addAction( "ToggleCurrentThumbnail" );
a->setText( i18n("Toggle Thumbnail for Current Window" ));
a->setGlobalShortcut(KShortcut(Qt::META + Qt::Key_F9));
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::META + Qt::Key_T));
connect(a, SIGNAL(triggered(bool)), this, SLOT(toggleCurrentThumbnail()));
maxwidth = conf.readEntry("MaxWidth", 200);

View File

@ -69,7 +69,7 @@ ThumbnailAsideEffectConfig::ThumbnailAsideEffectConfig(QWidget* parent, const QV
KAction* a = (KAction*)m_actionCollection->addAction( "ToggleCurrentThumbnail" );
a->setText( i18n("Toggle Thumbnail for Current Window" ));
a->setGlobalShortcut(KShortcut(Qt::META + Qt::Key_F9));
a->setGlobalShortcut(KShortcut(Qt::META + Qt::CTRL + Qt::Key_T));
load();
}

View File

@ -61,7 +61,7 @@ VideoRecordEffect::VideoRecordEffect()
KActionCollection* actionCollection = new KActionCollection( this );
KAction* a = static_cast< KAction* >( actionCollection->addAction( "VideoRecord" ));
a->setText( i18n("Toggle Video Recording" ));
a->setGlobalShortcut( KShortcut( Qt::CTRL + Qt::Key_F11 ));
a->setGlobalShortcut( KShortcut( Qt::CTRL + Qt::META + Qt::Key_V ));
connect( a, SIGNAL( triggered( bool )), this, SLOT( toggleRecording()));
area = QRect( 0, 0, displayWidth(), displayHeight());
}

View File

@ -51,7 +51,7 @@ VideoRecordEffectConfig::VideoRecordEffectConfig(QWidget* parent, const QVariant
KActionCollection* actionCollection = new KActionCollection( this, KComponentData("kwin") );
KAction* a = static_cast<KAction*>(actionCollection->addAction( "VideoRecord" ));
a->setText( i18n("Toggle Video Recording" ));
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::SHIFT + Qt::Key_F11));
a->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::META + Qt::Key_V));
mShortcutEditor = new KShortcutsEditor(actionCollection, this,
KShortcutsEditor::GlobalAction, KShortcutsEditor::LetterShortcutsDisallowed);