Add keybinding for show desktop.
No shortcut is set by default. Thanks to Alexander (alex3255) for providing the patch. FEATURE: 182729 svn path=/trunk/KDE/kdebase/workspace/; revision=1022596
This commit is contained in:
parent
f585e4e1d9
commit
faa64877bf
3 changed files with 10 additions and 0 deletions
|
@ -153,6 +153,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
DEF( I18N_NOOP("Window to Screen 6"), 0, slotWindowToScreen6() );
|
||||
DEF( I18N_NOOP("Window to Screen 7"), 0, slotWindowToScreen7() );
|
||||
DEF( I18N_NOOP("Window to Next Screen"), 0, slotWindowToNextScreen() );
|
||||
DEF( I18N_NOOP("Show Desktop"), 0, slotToggleShowDesktop() );
|
||||
|
||||
a = actionCollection->addAction( "Group:Desktop Switching" );
|
||||
a->setText( i18n("Desktop Switching") );
|
||||
|
|
|
@ -1034,6 +1034,14 @@ void Workspace::slotSetupWindowShortcut()
|
|||
performWindowOperation( c, Options::SetupWindowShortcutOp );
|
||||
}
|
||||
|
||||
/*!
|
||||
Toggles show desktop
|
||||
*/
|
||||
void Workspace::slotToggleShowDesktop()
|
||||
{
|
||||
setShowingDesktop( !showingDesktop() );
|
||||
}
|
||||
|
||||
/*!
|
||||
Move window to next desktop
|
||||
*/
|
||||
|
|
|
@ -546,6 +546,7 @@ class Workspace : public QObject, public KDecorationDefines
|
|||
void slotWindowToScreen7() { return slotWindowToScreen( 7 ); }
|
||||
void slotSwitchToNextScreen();
|
||||
void slotWindowToNextScreen();
|
||||
void slotToggleShowDesktop();
|
||||
|
||||
void slotWindowMaximize();
|
||||
void slotWindowMaximizeVertical();
|
||||
|
|
Loading…
Reference in a new issue