KStandardShortcut

KStandardShortcut Namespace Reference

Enumerations

enum  Category {
  InvalidCategory = -1, File, Edit, Navigation,
  View, Settings, Help
}
 
enum  StandardShortcut {
  AccelNone = 0, Open, New, Close,
  Save, Print, Quit, Undo,
  Redo, Cut, Copy, Paste,
  PasteSelection, SelectAll, Deselect, DeleteWordBack,
  DeleteWordForward, Find, FindNext, FindPrev,
  Replace, Home, Begin, End,
  Prior, Next, Up, Back,
  Forward, Reload, BeginningOfLine, EndOfLine,
  GotoLine, BackwardWord, ForwardWord, AddBookmark,
  ZoomIn, ZoomOut, FullScreen, ShowMenubar,
  TabNext, TabPrev, Help, WhatsThis,
  TextCompletion, PrevCompletion, NextCompletion, SubstringCompletion,
  RotateUp, RotateDown, OpenRecent, SaveAs,
  Revert, PrintPreview, Mail, Clear,
  ActualSize, FitToPage, FitToWidth, FitToHeight,
  Zoom, Goto, GotoPage, DocumentBack,
  DocumentForward, EditBookmarks, Spelling, ShowToolbar,
  ShowStatusbar, SaveOptions, KeyBindings, Preferences,
  ConfigureToolbars, ConfigureNotifications, TipofDay, ReportBug,
  SwitchApplicationLanguage, AboutApp, AboutKDE, DeleteFile,
  RenameFile, MoveToTrash, Donate, ShowHideHiddenFiles,
  CreateFolder, StandardShortcutCount
}
 

Functions

const QList< QKeySequence > & addBookmark ()
 
const QList< QKeySequence > & back ()
 
const QList< QKeySequence > & backwardWord ()
 
const QList< QKeySequence > & begin ()
 
const QList< QKeySequence > & beginningOfLine ()
 
Category category (StandardShortcut id)
 
const QList< QKeySequence > & close ()
 
const QList< QKeySequence > & completion ()
 
const QList< QKeySequence > & copy ()
 
const QList< QKeySequence > & createFolder ()
 
const QList< QKeySequence > & cut ()
 
const QList< QKeySequence > & deleteFile ()
 
const QList< QKeySequence > & deleteWordBack ()
 
const QList< QKeySequence > & deleteWordForward ()
 
const QList< QKeySequence > & end ()
 
const QList< QKeySequence > & endOfLine ()
 
StandardShortcut find (const QKeySequence &keySeq)
 
StandardShortcut find (const char *keyName)
 
const QList< QKeySequence > & find ()
 
StandardShortcut findByName (const QString &name)
 
const QList< QKeySequence > & findNext ()
 
const QList< QKeySequence > & findPrev ()
 
const QList< QKeySequence > & forward ()
 
const QList< QKeySequence > & forwardWord ()
 
const QList< QKeySequence > & fullScreen ()
 
const QList< QKeySequence > & gotoLine ()
 
static KStandardShortcutInfo * guardedStandardShortcutInfo (StandardShortcut id)
 
QList< QKeySequencehardcodedDefaultShortcut (StandardShortcut id)
 
const QList< QKeySequence > & help ()
 
const QList< QKeySequence > & home ()
 
static void initialize (StandardShortcut id)
 
QString label (StandardShortcut id)
 
const QList< QKeySequence > & moveToTrash ()
 
QString name (StandardShortcut id)
 
const QList< QKeySequence > & next ()
 
const QList< QKeySequence > & nextCompletion ()
 
const QList< QKeySequence > & open ()
 
const QList< QKeySequence > & openNew ()
 
const QList< QKeySequence > & paste ()
 
const QList< QKeySequence > & pasteSelection ()
 
const QList< QKeySequence > & preferences ()
 
const QList< QKeySequence > & prevCompletion ()
 
const QList< QKeySequence > & print ()
 
const QList< QKeySequence > & prior ()
 
const QList< QKeySequence > & quit ()
 
const QList< QKeySequence > & redo ()
 
const QList< QKeySequence > & reload ()
 
const QList< QKeySequence > & renameFile ()
 
const QList< QKeySequence > & replace ()
 
const QList< QKeySequence > & rotateDown ()
 
const QList< QKeySequence > & rotateUp ()
 
static void sanitizeShortcutList (QList< QKeySequence > *list)
 
const QList< QKeySequence > & save ()
 
void saveShortcut (StandardShortcut id, const QList< QKeySequence > &newShortcut)
 
const QList< QKeySequence > & selectAll ()
 
const QList< QKeySequence > & shortcut (StandardShortcut id)
 
const QList< QKeySequence > & showHideHiddenFiles ()
 
const QList< QKeySequence > & showMenubar ()
 
const QList< QKeySequence > & substringCompletion ()
 
const QList< QKeySequence > & tabNext ()
 
const QList< QKeySequence > & tabPrev ()
 
const QList< QKeySequence > & undo ()
 
const QList< QKeySequence > & up ()
 
KCONFIGGUI_EXPORT QString whatsThis (StandardShortcut id)
 
const QList< QKeySequence > & whatsThis ()
 
const QList< QKeySequence > & zoomIn ()
 
const QList< QKeySequence > & zoomOut ()
 

Variables

static KStandardShortcutInfo g_infoStandardShortcut []
 
QString whatsThis (StandardShortcut)
 

Detailed Description

Convenient methods for access to the common accelerator keys in the key configuration.

These are the standard keybindings that should be used in all KDE applications. They will be configurable, so do not hardcode the default behavior.

Enumeration Type Documentation

Categories in which the standard shortcuts can be classified.

Since
5.74

Definition at line 155 of file kstandardshortcut.h.

Defines the identifier of all standard accelerators.

Enumerator
Open 

Open file.

New 

Create a new document.

Close 

Close current document.

Save 

Save current document.

Print 

Print current document.

Quit 

Quit the program.

Undo 

Undo last operation.

Redo 

Redo last operation.

Cut 

Cut selected area and store it in the clipboard.

Copy 

Copy selected area into the clipboard.

Paste 

Paste contents of clipboard at mouse/cursor position.

PasteSelection 

Paste the selection at mouse/cursor position.

SelectAll 

Select all.

Deselect 

Deselect any selected elements.

DeleteWordBack 

Delete a word back from mouse/cursor position.

DeleteWordForward 

Delete a word forward from mouse/cursor position.

Find 

Initiate a 'find' request in the current document.

FindNext 

Find the next instance of a stored 'find'.

FindPrev 

Find a previous instance of a stored 'find'.

Replace 

Find and replace matches.

Home 

Go to home page.

Begin 

Go to beginning of the document.

End 

Go to end of the document.

Prior 

Scroll up one page.

Next 

Scroll down one page.

Up 

Up.

Back 

Back.

Forward 

Forward.

Reload 

Reload.

BeginningOfLine 

Go to beginning of current line.

EndOfLine 

Go to end of current line.

GotoLine 

Go to line.

BackwardWord 

BackwardWord.

ForwardWord 

ForwardWord.

AddBookmark 

Add current page to bookmarks.

ZoomIn 

Zoom in.

ZoomOut 

Zoom out.

FullScreen 

Full Screen mode.

ShowMenubar 

Show Menu Bar.

TabNext 

Next Tab.

TabPrev 

Previous Tab.

Help 

Help the user in the current situation.

WhatsThis 

What's This button.

TextCompletion 

Complete text in input widgets.

PrevCompletion 

Iterate through a list when completion returns multiple items.

NextCompletion 

Iterate through a list when completion returns multiple items.

SubstringCompletion 

Find a string within another string or list of strings.

RotateUp 

Help users iterate through a list of entries.

RotateDown 

Help users iterate through a list of entries.

OpenRecent 

Open a recently used document.

SaveAs 

Save the current document under a different name.

Revert 

Revert the current document to the last saved version.

PrintPreview 

Show a print preview of the current document.

Mail 

Send the current document by mail.

Clear 

Clear the content of the focus widget.

ActualSize 

View the document at its actual size.

FitToPage 

Fit the document view to the size of the current window.

FitToWidth 

Fit the document view to the width of the current window.

FitToHeight 

Fit the document view to the height of the current window.

Zoom 

Select the current zoom level.

Goto 

Jump to some specific location in the document.

GotoPage 

Go to a specific page.

DocumentBack 

Move back (document style menu).

DocumentForward 

Move forward (document style menu).

EditBookmarks 

Edit the application bookmarks.

Spelling 

Pop up the spell checker.

ShowToolbar 

Show/Hide the toolbar.

ShowStatusbar 

Show/Hide the statusbar.

SaveOptions 
Deprecated:
since 5.39
KeyBindings 

Display the configure key bindings dialog.

Preferences 

Display the preferences/options dialog.

ConfigureToolbars 

Display the toolbar configuration dialog.

ConfigureNotifications 

Display the notifications configuration dialog.

TipofDay 

Display the "Tip of the Day".

ReportBug 

Display the Report Bug dialog.

SwitchApplicationLanguage 

Display the Switch Application Language dialog.

AboutApp 

Display the application's About dialog.

AboutKDE 

Display the About KDE dialog.

DeleteFile 

Permanently delete files or folders.

Since
5.25
RenameFile 

Rename files or folders.

Since
5.25
MoveToTrash 

Move files or folders to the trash.

Since
5.25
Donate 

Open donation page on kde.org.

Since
5.26
ShowHideHiddenFiles 

Toggle showing or hiding hidden files.

Since
5.70
CreateFolder 

Create a folder.

Since
5.74

Definition at line 44 of file kstandardshortcut.h.

Function Documentation

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::addBookmark ( )

Add current page to bookmarks.

Default: Ctrl+B

Returns
the shortcut of the standard accelerator

Definition at line 710 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::back ( )

Back.

Default: Alt+Left

Returns
the shortcut of the standard accelerator

Definition at line 778 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::backwardWord ( )

BackwardWord.

Default: Ctrl+Left

Returns
the shortcut of the standard accelerator

Definition at line 698 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::begin ( )

Go to beginning of the document.

Default: Ctrl-Home

Returns
the shortcut of the standard accelerator

Definition at line 674 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::beginningOfLine ( )

Go to beginning of current line.

Default: Home

Returns
the shortcut of the standard accelerator

Definition at line 682 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT Category KStandardShortcut::category ( StandardShortcut  id)

Returns the appropriate category for the given StandardShortcut id.

Since
5.73

Definition at line 593 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::close ( )

Close current document.

Default: Ctrl-w

Returns
the shortcut of the standard accelerator

Definition at line 606 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::completion ( )

Complete text in input widgets.

Default Ctrl+E

Returns
the shortcut of the standard accelerator

Definition at line 738 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::copy ( )

Copy selected area into the clipboard.

Default: Ctrl-c

Returns
the shortcut of the standard accelerator

Definition at line 626 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::createFolder ( )

Create a folder.

Default: F10

Returns
the shortcut of the standard accelerator
Since
5.74

Definition at line 798 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::cut ( )

Cut selected area and store it in the clipboard.

Default: Ctrl-x

Returns
the shortcut of the standard accelerator

Definition at line 622 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::deleteFile ( )

Permanently delete files or folders.

Default: Shift+Delete

Returns
the shortcut of the standard accelerator
Since
5.25

Definition at line 790 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::deleteWordBack ( )

Delete a word back from mouse/cursor position.

Default: Ctrl-Backspace

Returns
the shortcut of the standard accelerator

Definition at line 638 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::deleteWordForward ( )

Delete a word forward from mouse/cursor position.

Default: Ctrl-Delete

Returns
the shortcut of the standard accelerator

Definition at line 642 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::end ( )

Go to end of the document.

Default: Ctrl-End

Returns
the shortcut of the standard accelerator

Definition at line 678 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::endOfLine ( )

Go to end of current line.

Default: End

Returns
the shortcut of the standard accelerator

Definition at line 686 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT StandardShortcut KStandardShortcut::find ( const QKeySequence keySeq)

Return the StandardShortcut id of the standard accel action which uses this key sequence, or AccelNone if none of them do.

This is used by class KKeyChooser.

Parameters
keySeqthe key sequence to search
Returns
the id of the standard accelerator, or AccelNone if there is none

Definition at line 528 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT StandardShortcut KStandardShortcut::find ( const char *  keyName)

Return the StandardShortcut id of the standard accel action which has keyName as its name, or AccelNone if none of them do.

This is used by class KKeyChooser.

Parameters
keyNamethe key sequence to search
Returns
the id of the standard accelerator, or AccelNone if there is none
Deprecated:
since 5.71, use findByName(const QString &name) instead

Definition at line 551 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::find ( )

Initiate a 'find' request in the current document.

Default: Ctrl-f

Returns
the shortcut of the standard accelerator

Definition at line 654 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT StandardShortcut KStandardShortcut::findByName ( const QString name)

Return the StandardShortcut id of the standard accelerator action which has name as its name, or AccelNone if none of them do.

Parameters
namethe name as returned by name(StandardShortcut id)
Returns
the id of the standard accelerator with the given name or AccelNone if there is no such accelerator
Since
5.71

Definition at line 563 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::findNext ( )

Find the next instance of a stored 'find' Default: F3.

Returns
the shortcut of the standard accelerator

Definition at line 658 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::findPrev ( )

Find a previous instance of a stored 'find'.

Default: Shift-F3

Returns
the shortcut of the standard accelerator

Definition at line 662 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::forward ( )

Forward.

Default: ALT+Right

Returns
the shortcut of the standard accelerator

Definition at line 782 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::forwardWord ( )

ForwardWord.

Default: Ctrl+Right

Returns
the shortcut of the standard accelerator

Definition at line 702 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::fullScreen ( )

Full Screen Mode.

Default: Ctrl+Shift+F

Returns
the shortcut of the standard accelerator

Definition at line 722 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::gotoLine ( )

Go to line.

Default: Ctrl+G

Returns
the shortcut of the standard accelerator

Definition at line 706 of file kstandardshortcut.cpp.

static KStandardShortcutInfo* KStandardShortcut::guardedStandardShortcutInfo ( StandardShortcut  id)
static

Search for the KStandardShortcutInfo object associated with the given id.

Return a dummy entry with no name and an empty shortcut if id is invalid.

Definition at line 407 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT QList< QKeySequence > KStandardShortcut::hardcodedDefaultShortcut ( StandardShortcut  id)

Returns the hardcoded default shortcut for id.

This does not take into account the user's configuration.

Parameters
idthe id of the accelerator
Returns
the default shortcut of the accelerator

Definition at line 573 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::help ( )

Help the user in the current situation.

Default: F1

Returns
the shortcut of the standard accelerator

Definition at line 734 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::home ( )

Go to home page.

Default: Alt-Home

Returns
the shortcut of the standard accelerator

Definition at line 670 of file kstandardshortcut.cpp.

static void KStandardShortcut::initialize ( StandardShortcut  id)
static

Initialize the accelerator id by checking if it is overridden in the configuration file (and if it isn't, use the default).

On X11, if QApplication was initialized with GUI disabled, the default will always be used.

Definition at line 439 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT QString KStandardShortcut::label ( StandardShortcut  id)

Returns a localized label for user-visible display.

Parameters
idthe id of the accelerator
Returns
a localized label for the accelerator

Definition at line 501 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::moveToTrash ( )

Moves files or folders to the trash.

Default: Delete

Returns
the shortcut of the standard accelerator
Since
5.25

Definition at line 802 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT QString KStandardShortcut::name ( StandardShortcut  id)

Returns a unique name for the given accel.

Parameters
idthe id of the accelerator
Returns
the unique name of the accelerator

Definition at line 496 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::next ( )

Scroll down one page.

Default: Next

Returns
the shortcut of the standard accelerator

Definition at line 694 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::nextCompletion ( )

Iterate through a list when completion returns multiple items.

Default: Ctrl+Down

Returns
the shortcut of the standard accelerator

Definition at line 746 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::open ( )

Open file.

Default: Ctrl-o

Returns
the shortcut of the standard accelerator

Definition at line 598 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::openNew ( )

Create a new document (or whatever).

Default: Ctrl-n

Returns
the shortcut of the standard accelerator

Definition at line 602 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::paste ( )

Paste contents of clipboard at mouse/cursor position.

Default: Ctrl-v

Returns
the shortcut of the standard accelerator

Definition at line 630 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::pasteSelection ( )

Paste the selection at mouse/cursor position.

Default: Ctrl-Shift-Insert

Returns
the shortcut of the standard accelerator

Definition at line 634 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::preferences ( )

Opens the app's settings window.

Default: Ctrl+Shift+Comma

Returns
the shortcut of the standard accelerator
Since
5.64

Definition at line 806 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::prevCompletion ( )

Iterate through a list when completion returns multiple items.

Default: Ctrl+Up

Returns
the shortcut of the standard accelerator

Definition at line 742 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::print ( )

Print current document.

Default: Ctrl-p

Returns
the shortcut of the standard accelerator

Definition at line 614 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::prior ( )

Scroll up one page.

Default: Prior

Returns
the shortcut of the standard accelerator

Definition at line 690 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::quit ( )

Quit the program.

Default: Ctrl-q

Returns
the shortcut of the standard accelerator

Definition at line 618 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::redo ( )

Redo last operation.

Default: Shift-Ctrl-z

Returns
the shortcut of the standard accelerator

Definition at line 650 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::reload ( )

Reload.

Default: F5

Returns
the shortcut of the standard accelerator

Definition at line 766 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::renameFile ( )

Rename files or folders.

Default: F2

Returns
the shortcut of the standard accelerator
Since
5.25

Definition at line 794 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::replace ( )

Find and replace matches.

Default: Ctrl-r

Returns
the shortcut of the standard accelerator

Definition at line 666 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::rotateDown ( )

Help users iterate through a list of entries.

Default: Down

Returns
the shortcut of the standard accelerator

Definition at line 754 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::rotateUp ( )

Help users iterate through a list of entries.

Default: Up

Returns
the shortcut of the standard accelerator

Definition at line 750 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::save ( )

Save current document.

Default: Ctrl-s

Returns
the shortcut of the standard accelerator

Definition at line 610 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT void KStandardShortcut::saveShortcut ( StandardShortcut  id,
const QList< QKeySequence > &  newShortcut 
)

Saves the new shortcut cut for standard accel id.

Definition at line 467 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::selectAll ( )

Select all.

Default: Ctrl-A

Returns
the shortcut of the standard accelerator

Definition at line 770 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::shortcut ( StandardShortcut  id)

Returns the keybinding for accel.

On X11, if QApplication was initialized with GUI disabled, the default keybinding will always be returned.

Parameters
idthe id of the accelerator

Definition at line 517 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::showHideHiddenFiles ( )

Shows or hides hidden files.

Defaults: Ctrl+H, Alt+.

Returns
the shortcut of the standard accelerator
Since
5.70

Definition at line 811 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::showMenubar ( )

Show Menu Bar.

Default: Ctrl-M

Returns
the shortcut of the standard accelerator

Definition at line 786 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::substringCompletion ( )

Find a string within another string or list of strings.

Default: Ctrl-T

Returns
the shortcut of the standard accelerator

Definition at line 758 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::tabNext ( )

Next Tab.

Default: Ctrl-<

Returns
the shortcut of the standard accelerator

Definition at line 714 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::tabPrev ( )

Previous Tab.

Default: Ctrl->

Returns
the shortcut of the standard accelerator

Definition at line 718 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::undo ( )

Undo last operation.

Default: Ctrl-z

Returns
the shortcut of the standard accelerator

Definition at line 646 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::up ( )

Up.

Default: Alt+Up

Returns
the shortcut of the standard accelerator

Definition at line 774 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT QString KStandardShortcut::whatsThis ( StandardShortcut  id)

Returns an extended WhatsThis description for the given accelerator.

Parameters
idthe id of the accelerator
Returns
a localized description of the accelerator
const QList<QKeySequence>& KStandardShortcut::whatsThis ( )

What's This button.

Default: Shift+F1

Returns
the shortcut of the standard accelerator

Definition at line 762 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::zoomIn ( )

Zoom in.

Default: Ctrl-Plus

Returns
the shortcut of the standard accelerator

Definition at line 726 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::zoomOut ( )

Zoom out.

Default: Ctrl-Minus

Returns
the shortcut of the standard accelerator

Definition at line 730 of file kstandardshortcut.cpp.

Variable Documentation

KStandardShortcutInfo KStandardShortcut::g_infoStandardShortcut[]
static

Array of predefined KStandardShortcutInfo objects, which cover all the "standard" accelerators.

Each enum value from StandardShortcut should appear in this table.

Definition at line 64 of file kstandardshortcut.cpp.

KCONFIGGUI_EXPORT const QList< QKeySequence > & KStandardShortcut::whatsThis ( StandardShortcut  )

What's This button.

Default: Shift+F1

Returns
the shortcut of the standard accelerator

Definition at line 508 of file kstandardshortcut.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jul 27 2021 22:48:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.