KStandardShortcut

KStandardShortcut Namespace Reference

Classes

class  StandardShortcutWatcher
 

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 ()
 
const QList< QKeySequence > & find ()
 
StandardShortcut find (const char *keyName)
 
StandardShortcut find (const QKeySequence &keySeq)
 
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 ()
 
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)
 
StandardShortcutWatchershortcutWatcher ()
 
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 > & zoomIn ()
 
const QList< QKeySequence > & zoomOut ()
 

Variables

static KStandardShortcutInfo g_infoStandardShortcut []
 
QString whatsThis ()
 

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

◆ Category

Categories in which the standard shortcuts can be classified.

Since
5.74

Definition at line 155 of file kstandardshortcut.h.

◆ StandardShortcut

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

◆ addBookmark()

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

Add current page to bookmarks.

Default: Ctrl+B

Returns
the shortcut of the standard accelerator

Definition at line 715 of file kstandardshortcut.cpp.

◆ back()

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

Back.

Default: Alt+Left

Returns
the shortcut of the standard accelerator

Definition at line 783 of file kstandardshortcut.cpp.

◆ backwardWord()

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

BackwardWord.

Default: Ctrl+Left

Returns
the shortcut of the standard accelerator

Definition at line 703 of file kstandardshortcut.cpp.

◆ begin()

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

Go to beginning of the document.

Default: Ctrl-Home

Returns
the shortcut of the standard accelerator

Definition at line 679 of file kstandardshortcut.cpp.

◆ beginningOfLine()

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

Go to beginning of current line.

Default: Home

Returns
the shortcut of the standard accelerator

Definition at line 687 of file kstandardshortcut.cpp.

◆ category()

KCONFIGGUI_EXPORT Category KStandardShortcut::category ( StandardShortcut  id)

Returns the appropriate category for the given StandardShortcut id.

Since
5.73

Definition at line 598 of file kstandardshortcut.cpp.

◆ close()

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

Close current document.

Default: Ctrl-w

Returns
the shortcut of the standard accelerator

Definition at line 611 of file kstandardshortcut.cpp.

◆ completion()

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

Complete text in input widgets.

Default Ctrl+E

Returns
the shortcut of the standard accelerator

Definition at line 743 of file kstandardshortcut.cpp.

◆ copy()

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

Copy selected area into the clipboard.

Default: Ctrl-c

Returns
the shortcut of the standard accelerator

Definition at line 631 of file kstandardshortcut.cpp.

◆ createFolder()

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

Create a folder.

Default: F10

Returns
the shortcut of the standard accelerator
Since
5.74

Definition at line 803 of file kstandardshortcut.cpp.

◆ cut()

const KCONFIGGUI_EXPORT 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 627 of file kstandardshortcut.cpp.

◆ deleteFile()

const KCONFIGGUI_EXPORT 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 795 of file kstandardshortcut.cpp.

◆ deleteWordBack()

const KCONFIGGUI_EXPORT 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 643 of file kstandardshortcut.cpp.

◆ deleteWordForward()

const KCONFIGGUI_EXPORT 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 647 of file kstandardshortcut.cpp.

◆ end()

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

Go to end of the document.

Default: Ctrl-End

Returns
the shortcut of the standard accelerator

Definition at line 683 of file kstandardshortcut.cpp.

◆ endOfLine()

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

Go to end of current line.

Default: End

Returns
the shortcut of the standard accelerator

Definition at line 691 of file kstandardshortcut.cpp.

◆ find() [1/3]

const KCONFIGGUI_EXPORT 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 659 of file kstandardshortcut.cpp.

◆ find() [2/3]

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 556 of file kstandardshortcut.cpp.

◆ find() [3/3]

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 533 of file kstandardshortcut.cpp.

◆ findByName()

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 568 of file kstandardshortcut.cpp.

◆ findNext()

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

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

Returns
the shortcut of the standard accelerator

Definition at line 663 of file kstandardshortcut.cpp.

◆ findPrev()

const KCONFIGGUI_EXPORT 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 667 of file kstandardshortcut.cpp.

◆ forward()

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

Forward.

Default: ALT+Right

Returns
the shortcut of the standard accelerator

Definition at line 787 of file kstandardshortcut.cpp.

◆ forwardWord()

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

ForwardWord.

Default: Ctrl+Right

Returns
the shortcut of the standard accelerator

Definition at line 707 of file kstandardshortcut.cpp.

◆ fullScreen()

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

Full Screen Mode.

Default: Ctrl+Shift+F

Returns
the shortcut of the standard accelerator

Definition at line 727 of file kstandardshortcut.cpp.

◆ gotoLine()

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

Go to line.

Default: Ctrl+G

Returns
the shortcut of the standard accelerator

Definition at line 711 of file kstandardshortcut.cpp.

◆ guardedStandardShortcutInfo()

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 410 of file kstandardshortcut.cpp.

◆ hardcodedDefaultShortcut()

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 578 of file kstandardshortcut.cpp.

◆ help()

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

Help the user in the current situation.

Default: F1

Returns
the shortcut of the standard accelerator

Definition at line 739 of file kstandardshortcut.cpp.

◆ home()

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

Go to home page.

Default: Alt-Home

Returns
the shortcut of the standard accelerator

Definition at line 675 of file kstandardshortcut.cpp.

◆ initialize()

void KStandardShortcut::initialize ( StandardShortcut  id)

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 442 of file kstandardshortcut.cpp.

◆ label()

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 506 of file kstandardshortcut.cpp.

◆ moveToTrash()

const KCONFIGGUI_EXPORT 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 807 of file kstandardshortcut.cpp.

◆ name()

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 501 of file kstandardshortcut.cpp.

◆ next()

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

Scroll down one page.

Default: Next

Returns
the shortcut of the standard accelerator

Definition at line 699 of file kstandardshortcut.cpp.

◆ nextCompletion()

const KCONFIGGUI_EXPORT 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 751 of file kstandardshortcut.cpp.

◆ open()

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

Open file.

Default: Ctrl-o

Returns
the shortcut of the standard accelerator

Definition at line 603 of file kstandardshortcut.cpp.

◆ openNew()

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

Create a new document (or whatever).

Default: Ctrl-n

Returns
the shortcut of the standard accelerator

Definition at line 607 of file kstandardshortcut.cpp.

◆ paste()

const KCONFIGGUI_EXPORT 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 635 of file kstandardshortcut.cpp.

◆ pasteSelection()

const KCONFIGGUI_EXPORT 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 639 of file kstandardshortcut.cpp.

◆ preferences()

const KCONFIGGUI_EXPORT 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 811 of file kstandardshortcut.cpp.

◆ prevCompletion()

const KCONFIGGUI_EXPORT 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 747 of file kstandardshortcut.cpp.

◆ print()

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

Print current document.

Default: Ctrl-p

Returns
the shortcut of the standard accelerator

Definition at line 619 of file kstandardshortcut.cpp.

◆ prior()

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

Scroll up one page.

Default: Prior

Returns
the shortcut of the standard accelerator

Definition at line 695 of file kstandardshortcut.cpp.

◆ quit()

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

Quit the program.

Default: Ctrl-q

Returns
the shortcut of the standard accelerator

Definition at line 623 of file kstandardshortcut.cpp.

◆ redo()

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

Redo last operation.

Default: Shift-Ctrl-z

Returns
the shortcut of the standard accelerator

Definition at line 655 of file kstandardshortcut.cpp.

◆ reload()

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

Reload.

Default: F5

Returns
the shortcut of the standard accelerator

Definition at line 771 of file kstandardshortcut.cpp.

◆ renameFile()

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

Rename files or folders.

Default: F2

Returns
the shortcut of the standard accelerator
Since
5.25

Definition at line 799 of file kstandardshortcut.cpp.

◆ replace()

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

Find and replace matches.

Default: Ctrl-r

Returns
the shortcut of the standard accelerator

Definition at line 671 of file kstandardshortcut.cpp.

◆ rotateDown()

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

Help users iterate through a list of entries.

Default: Down

Returns
the shortcut of the standard accelerator

Definition at line 759 of file kstandardshortcut.cpp.

◆ rotateUp()

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

Help users iterate through a list of entries.

Default: Up

Returns
the shortcut of the standard accelerator

Definition at line 755 of file kstandardshortcut.cpp.

◆ save()

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

Save current document.

Default: Ctrl-s

Returns
the shortcut of the standard accelerator

Definition at line 615 of file kstandardshortcut.cpp.

◆ saveShortcut()

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

Saves the new shortcut cut for standard accel id.

Definition at line 470 of file kstandardshortcut.cpp.

◆ selectAll()

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

Select all.

Default: Ctrl-A

Returns
the shortcut of the standard accelerator

Definition at line 775 of file kstandardshortcut.cpp.

◆ shortcut()

const KCONFIGGUI_EXPORT 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 522 of file kstandardshortcut.cpp.

◆ shortcutWatcher()

KCONFIGGUI_EXPORT StandardShortcutWatcher * KStandardShortcut::shortcutWatcher ( )

Returns the global KStandardShortcutWatcher instance of this program.

In addition to the notifying about changes it also keeps the information returned by the functions in KStandardShortcut up to date. The object is created by the first call to this function.

Since
5.91

Definition at line 40 of file kstandardshortcutwatcher.cpp.

◆ showHideHiddenFiles()

const KCONFIGGUI_EXPORT 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 816 of file kstandardshortcut.cpp.

◆ showMenubar()

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

Show Menu Bar.

Default: Ctrl-M

Returns
the shortcut of the standard accelerator

Definition at line 791 of file kstandardshortcut.cpp.

◆ substringCompletion()

const KCONFIGGUI_EXPORT 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 763 of file kstandardshortcut.cpp.

◆ tabNext()

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

Next Tab.

Default: Ctrl-<

Returns
the shortcut of the standard accelerator

Definition at line 719 of file kstandardshortcut.cpp.

◆ tabPrev()

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

Previous Tab.

Default: Ctrl->

Returns
the shortcut of the standard accelerator

Definition at line 723 of file kstandardshortcut.cpp.

◆ undo()

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

Undo last operation.

Default: Ctrl-z

Returns
the shortcut of the standard accelerator

Definition at line 651 of file kstandardshortcut.cpp.

◆ up()

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

Up.

Default: Alt+Up

Returns
the shortcut of the standard accelerator

Definition at line 779 of file kstandardshortcut.cpp.

◆ whatsThis()

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

◆ zoomIn()

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

Zoom in.

Default: Ctrl-Plus

Returns
the shortcut of the standard accelerator

Definition at line 731 of file kstandardshortcut.cpp.

◆ zoomOut()

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

Zoom out.

Default: Ctrl-Minus

Returns
the shortcut of the standard accelerator

Definition at line 735 of file kstandardshortcut.cpp.

Variable Documentation

◆ g_infoStandardShortcut

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 67 of file kstandardshortcut.cpp.

◆ whatsThis

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

What's This button.

Default: Shift+F1

Returns
the shortcut of the standard accelerator

Definition at line 513 of file kstandardshortcut.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 04:03:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.