KStandardAction

KStandardAction Namespace Reference

Enumerations

enum  StandardAction {
  ActionNone, New, Open, OpenRecent,
  Save, SaveAs, Revert, Close,
  Print, PrintPreview, Mail, Quit,
  Undo, Redo, Cut, Copy,
  Paste, SelectAll, Deselect, Find,
  FindNext, FindPrev, Replace, ActualSize,
  FitToPage, FitToWidth, FitToHeight, ZoomIn,
  ZoomOut, Zoom, Redisplay, Up,
  Back, Forward, Home, Prior,
  Next, Goto, GotoPage, GotoLine,
  FirstPage, LastPage, DocumentBack, DocumentForward,
  AddBookmark, EditBookmarks, Spelling, ShowMenubar,
  ShowToolbar, ShowStatusbar, SaveOptions, KeyBindings,
  Preferences, ConfigureToolbars, Help, HelpContents,
  WhatsThis, ReportBug, AboutApp, AboutKDE,
  TipofDay, ConfigureNotifications, FullScreen, Clear,
  PasteText, SwitchApplicationLanguage, DeleteFile, RenameFile,
  MoveToTrash, Donate, HamburgerMenu
}
 

Functions

QAction_k_createInternal (StandardAction id, QObject *parent)
 
QActionaboutApp (const QObject *recvr, const char *slot, QObject *parent)
 
QActionaboutApp (const QObject *recvr, Func slot, QObject *parent)
 
QActionaboutKDE (const QObject *recvr, const char *slot, QObject *parent)
 
QActionaboutKDE (const QObject *recvr, Func slot, QObject *parent)
 
QList< StandardActionactionIds ()
 
QActionactualSize (const QObject *recvr, const char *slot, QObject *parent)
 
QActionactualSize (const QObject *recvr, Func slot, QObject *parent)
 
QActionaddBookmark (const QObject *recvr, const char *slot, QObject *parent)
 
QActionaddBookmark (const QObject *recvr, Func slot, QObject *parent)
 
QActionback (const QObject *recvr, const char *slot, QObject *parent)
 
QActionback (const QObject *recvr, Func slot, QObject *parent)
 
static QActionbuildAutomaticAction (QObject *parent, StandardAction id, const char *slot)
 
QActionclear (const QObject *recvr, const char *slot, QObject *parent)
 
QActionclear (const QObject *recvr, Func slot, QObject *parent)
 
QActionclear (QObject *parent)
 
QActionclose (const QObject *recvr, const char *slot, QObject *parent)
 
QActionclose (const QObject *recvr, Func slot, QObject *parent)
 
QActionconfigureNotifications (const QObject *recvr, const char *slot, QObject *parent)
 
QActionconfigureNotifications (const QObject *recvr, Func slot, QObject *parent)
 
QActionconfigureToolbars (const QObject *recvr, const char *slot, QObject *parent)
 
QActionconfigureToolbars (const QObject *recvr, Func slot, QObject *parent)
 
QActioncopy (const QObject *recvr, const char *slot, QObject *parent)
 
QActioncopy (const QObject *recvr, Func slot, QObject *parent)
 
QActioncopy (QObject *parent)
 
QActioncreate (StandardAction id, const QObject *recvr, const char *slot, QObject *parent)
 
QActioncreate (StandardAction id, const QObject *recvr, Func slot, QObject *parent, Qt::ConnectionType connectionType=-1)
 
QActioncut (const QObject *recvr, const char *slot, QObject *parent)
 
QActioncut (const QObject *recvr, Func slot, QObject *parent)
 
QActioncut (QObject *parent)
 
QActiondeleteFile (const QObject *recvr, const char *slot, QObject *parent)
 
QActiondeleteFile (const QObject *recvr, Func slot, QObject *parent)
 
QActiondeselect (const QObject *recvr, const char *slot, QObject *parent)
 
QActiondeselect (const QObject *recvr, Func slot, QObject *parent)
 
QActiondocumentBack (const QObject *recvr, const char *slot, QObject *parent)
 
QActiondocumentBack (const QObject *recvr, Func slot, QObject *parent)
 
QActiondocumentForward (const QObject *recvr, const char *slot, QObject *parent)
 
QActiondocumentForward (const QObject *recvr, Func slot, QObject *parent)
 
QActiondonate (const QObject *recvr, const char *slot, QObject *parent)
 
QActiondonate (const QObject *recvr, Func slot, QObject *parent)
 
QActioneditBookmarks (const QObject *recvr, const char *slot, QObject *parent)
 
QActioneditBookmarks (const QObject *recvr, Func slot, QObject *parent)
 
QActionfind (const QObject *recvr, const char *slot, QObject *parent)
 
QActionfind (const QObject *recvr, Func slot, QObject *parent)
 
QActionfindNext (const QObject *recvr, const char *slot, QObject *parent)
 
QActionfindNext (const QObject *recvr, Func slot, QObject *parent)
 
QActionfindPrev (const QObject *recvr, const char *slot, QObject *parent)
 
QActionfindPrev (const QObject *recvr, Func slot, QObject *parent)
 
QActionfirstPage (const QObject *recvr, const char *slot, QObject *parent)
 
QActionfirstPage (const QObject *recvr, Func slot, QObject *parent)
 
QActionfitToHeight (const QObject *recvr, const char *slot, QObject *parent)
 
QActionfitToHeight (const QObject *recvr, Func slot, QObject *parent)
 
QActionfitToPage (const QObject *recvr, const char *slot, QObject *parent)
 
QActionfitToPage (const QObject *recvr, Func slot, QObject *parent)
 
QActionfitToWidth (const QObject *recvr, const char *slot, QObject *parent)
 
QActionfitToWidth (const QObject *recvr, Func slot, QObject *parent)
 
QActionforward (const QObject *recvr, const char *slot, QObject *parent)
 
QActionforward (const QObject *recvr, Func slot, QObject *parent)
 
KToggleFullScreenActionfullScreen (const QObject *recvr, const char *slot, QWidget *window, QObject *parent)
 
KToggleFullScreenActionfullScreen (const QObject *recvr, Func slot, QWidget *window, QObject *parent)
 
QActiongoTo (const QObject *recvr, const char *slot, QObject *parent)
 
QActiongoTo (const QObject *recvr, Func slot, QObject *parent)
 
QActiongotoLine (const QObject *recvr, const char *slot, QObject *parent)
 
QActiongotoLine (const QObject *recvr, Func slot, QObject *parent)
 
QActiongotoPage (const QObject *recvr, const char *slot, QObject *parent)
 
QActiongotoPage (const QObject *recvr, Func slot, QObject *parent)
 
KHamburgerMenuhamburgerMenu (const QObject *recvr, const char *slot, QObject *parent)
 
QActionhamburgerMenu (const QObject *recvr, Func slot, QObject *parent)
 
QActionhelp (const QObject *recvr, const char *slot, QObject *parent)
 
QActionhelp (const QObject *recvr, Func slot, QObject *parent)
 
QActionhelpContents (const QObject *recvr, const char *slot, QObject *parent)
 
QActionhelpContents (const QObject *recvr, Func slot, QObject *parent)
 
QActionhome (const QObject *recvr, const char *slot, QObject *parent)
 
QActionhome (const QObject *recvr, Func slot, QObject *parent)
 
QActionkeyBindings (const QObject *recvr, const char *slot, QObject *parent)
 
QActionkeyBindings (const QObject *recvr, Func slot, QObject *parent)
 
QActionlastPage (const QObject *recvr, const char *slot, QObject *parent)
 
QActionlastPage (const QObject *recvr, Func slot, QObject *parent)
 
QActionmail (const QObject *recvr, const char *slot, QObject *parent)
 
QActionmail (const QObject *recvr, Func slot, QObject *parent)
 
QActionmoveToTrash (const QObject *recvr, const char *slot, QObject *parent)
 
QActionmoveToTrash (const QObject *recvr, Func slot, QObject *parent)
 
const char * name (StandardAction id)
 
QActionnext (const QObject *recvr, const char *slot, QObject *parent)
 
QActionnext (const QObject *recvr, Func slot, QObject *parent)
 
QActionopen (const QObject *recvr, const char *slot, QObject *parent)
 
QActionopen (const QObject *recvr, Func slot, QObject *parent)
 
QActionopenNew (const QObject *recvr, const char *slot, QObject *parent)
 
QActionopenNew (const QObject *recvr, Func slot, QObject *parent)
 
KRecentFilesActionopenRecent (const QObject *recvr, const char *slot, QObject *parent)
 
KRecentFilesActionopenRecent (const QObject *recvr, Func slot, QObject *parent)
 
QActionpaste (const QObject *recvr, const char *slot, QObject *parent)
 
QActionpaste (const QObject *recvr, Func slot, QObject *parent)
 
QActionpaste (QObject *parent)
 
QActionpasteText (const QObject *recvr, const char *slot, QObject *parent)
 
QActionpasteText (const QObject *recvr, Func slot, QObject *parent)
 
QActionpreferences (const QObject *recvr, const char *slot, QObject *parent)
 
QActionpreferences (const QObject *recvr, Func slot, QObject *parent)
 
QActionprint (const QObject *recvr, const char *slot, QObject *parent)
 
QActionprint (const QObject *recvr, Func slot, QObject *parent)
 
QActionprintPreview (const QObject *recvr, const char *slot, QObject *parent)
 
QActionprintPreview (const QObject *recvr, Func slot, QObject *parent)
 
QActionprior (const QObject *recvr, const char *slot, QObject *parent)
 
QActionprior (const QObject *recvr, Func slot, QObject *parent)
 
QActionquit (const QObject *recvr, const char *slot, QObject *parent)
 
QActionquit (const QObject *recvr, Func slot, QObject *parent)
 
QActionredisplay (const QObject *recvr, const char *slot, QObject *parent)
 
QActionredisplay (const QObject *recvr, Func slot, QObject *parent)
 
QActionredo (const QObject *recvr, const char *slot, QObject *parent)
 
QActionredo (const QObject *recvr, Func slot, QObject *parent)
 
QActionrenameFile (const QObject *recvr, const char *slot, QObject *parent)
 
QActionrenameFile (const QObject *recvr, Func slot, QObject *parent)
 
QActionreplace (const QObject *recvr, const char *slot, QObject *parent)
 
QActionreplace (const QObject *recvr, Func slot, QObject *parent)
 
QActionreportBug (const QObject *recvr, const char *slot, QObject *parent)
 
QActionreportBug (const QObject *recvr, Func slot, QObject *parent)
 
QActionrevert (const QObject *recvr, const char *slot, QObject *parent)
 
QActionrevert (const QObject *recvr, Func slot, QObject *parent)
 
QActionsave (const QObject *recvr, const char *slot, QObject *parent)
 
QActionsave (const QObject *recvr, Func slot, QObject *parent)
 
QActionsaveAs (const QObject *recvr, const char *slot, QObject *parent)
 
QActionsaveAs (const QObject *recvr, Func slot, QObject *parent)
 
QActionsaveOptions (const QObject *recvr, const char *slot, QObject *parent)
 
QActionsaveOptions (const QObject *recvr, Func slot, QObject *parent)
 
QActionselectAll (const QObject *recvr, const char *slot, QObject *parent)
 
QActionselectAll (const QObject *recvr, Func slot, QObject *parent)
 
QActionselectAll (QObject *parent)
 
KStandardShortcut::StandardShortcut shortcutForActionId (StandardAction id)
 
KToggleActionshowMenubar (const QObject *recvr, const char *slot, QObject *parent)
 
KToggleActionshowMenubar (const QObject *recvr, Func slot, QObject *parent)
 
KToggleActionshowStatusbar (const QObject *recvr, const char *slot, QObject *parent)
 
KToggleActionshowStatusbar (const QObject *recvr, Func slot, QObject *parent)
 
QActionspelling (const QObject *recvr, const char *slot, QObject *parent)
 
QActionspelling (const QObject *recvr, Func slot, QObject *parent)
 
const char * stdName (StandardAction act_enum)
 
QStringList stdNames ()
 
QActionswitchApplicationLanguage (const QObject *recvr, const char *slot, QObject *parent)
 
QActionswitchApplicationLanguage (const QObject *recvr, Func slot, QObject *parent)
 
QActiontipOfDay (const QObject *recvr, const char *slot, QObject *parent)
 
QActiontipOfDay (const QObject *recvr, Func slot, QObject *parent)
 
QActionundo (const QObject *recvr, const char *slot, QObject *parent)
 
QActionundo (const QObject *recvr, Func slot, QObject *parent)
 
QActionup (const QObject *recvr, const char *slot, QObject *parent)
 
QActionup (const QObject *recvr, Func slot, QObject *parent)
 
QActionwhatsThis (const QObject *recvr, const char *slot, QObject *parent)
 
QActionwhatsThis (const QObject *recvr, Func slot, QObject *parent)
 
QActionzoom (const QObject *recvr, const char *slot, QObject *parent)
 
QActionzoom (const QObject *recvr, Func slot, QObject *parent)
 
QActionzoomIn (const QObject *recvr, const char *slot, QObject *parent)
 
QActionzoomIn (const QObject *recvr, Func slot, QObject *parent)
 
QActionzoomOut (const QObject *recvr, const char *slot, QObject *parent)
 
QActionzoomOut (const QObject *recvr, Func slot, QObject *parent)
 

Detailed Description

Convenience methods to access all standard KDE actions.

These actions should be used instead of hardcoding menubar and toolbar items. Using these actions helps your application easily conform to the KDE Human Interface Guidelines.

All of the documentation for QAction holds for KStandardAction also. When in doubt on how things work, check the QAction documentation first. Please note that calling any of these methods automatically adds the action to the actionCollection() of the QObject given by the 'parent' parameter.

Simple Example:
In general, using standard actions should be a drop in replacement for regular actions. For example, if you previously had:

QAction *newAct = new QAction(i18n("&New"),
QIcon::fromTheme("document-new"),
this,
&ClassFoo::fileNew,
actionCollection());

You can replace it with:

QAction *newAct = KStandardAction::openNew(this, &ClassFoo::fileNew, actionCollection());

Non-standard Usages
It is possible to use the standard actions in various non-recommended ways. Say, for instance, you wanted to have a standard action (with the associated correct text and icon and accelerator, etc) but you didn't want it to go in the standard place (this is not recommended, by the way). One way to do this is to simply not use the XML UI framework and plug it into wherever you want. If you do want to use the XML UI framework (good!), then it is still possible.

Basically, the XML building code matches names in the XML code with the internal names of the actions. You can find out the internal names of each of the standard actions by using the name method like so: KStandardAction::name(KStandardAction::Cut) would return 'edit_cut'. The XML building code will match 'edit_cut' to the attribute in the global XML file and place your action there.

However, you can change the internal name. In this example, just do something like:

(void)KStandardAction::cut(this, SLOT(editCut()), actionCollection(), "my_cut");

Now, in your local XML resource file (e.g., yourappui.rc), simply put 'my_cut' where you want it to go.

Another non-standard usage concerns getting a pointer to an existing action if, say, you want to enable or disable the action. You could do it the recommended way and just grab a pointer when you instantiate it as in the 'openNew' example above... or you could do it the hard way:

QAction *cut = actionCollection()->action(KStandardAction::name(KStandardAction::Cut));

Another non-standard usage concerns instantiating the action in the first place. Usually, you would use the member functions as shown above (e.g., KStandardAction::cut(this, SLOT, parent)). You may, however, do this using the enums provided. This author can't think of a reason why you would want to, but, hey, if you do, here's how:

(void)KStandardAction::action(KStandardAction::New, this, SLOT(fileNew()), actionCollection());
(void)KStandardAction::action(KStandardAction::Cut, this, SLOT(editCut()), actionCollection());
Author
Kurt Granroth granr.nosp@m.oth@.nosp@m.kde.o.nosp@m.rg

Enumeration Type Documentation

◆ StandardAction

The standard menubar and toolbar actions.

Enumerator
New 

Create a new document or window.

Open 

Open an existing file.

OpenRecent 

Open a recently used document.

Save 

Save the current document.

SaveAs 

Save the current document under a different name.

Revert 

Revert the current document to the last saved version.

Close 

Close the current document.

Print 

Print the current document.

PrintPreview 

Show a print preview of the current document.

Mail 

Send the current document by mail.

Quit 

Quit the program.

Undo 

Undo the last operation.

Redo 

Redo the last operation.

Cut 

Cut selected area and store it in the clipboard.

Copy 

Copy selected area and store it in the clipboard.

Paste 

Paste the contents of clipboard at the current mouse or cursor.

SelectAll 

Select all elements in the current document.

Deselect 

Deselect any selected elements in the current document.

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.

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.

ZoomIn 

Zoom in the current document.

ZoomOut 

Zoom out the current document.

Zoom 

Select the current zoom level.

Redisplay 

Redisplay or redraw the document.

Up 

Move up (web style menu).

Back 

Move back (web style menu).

Forward 

Move forward (web style menu).

Home 

Go to the "Home" position or document.

Prior 

Scroll up one page.

Next 

Scroll down one page.

Goto 

Jump to some specific location in the document.

GotoPage 

Go to a specific page.

GotoLine 

Go to a specific line.

FirstPage 

Jump to the first page.

LastPage 

Jump to the last page.

DocumentBack 

Move back (document style menu).

DocumentForward 

Move forward (document style menu).

AddBookmark 

Add the current page to the bookmarks tree.

EditBookmarks 

Edit the application bookmarks.

Spelling 

Pop up the spell checker.

ShowMenubar 

Show/Hide the menubar.

ShowToolbar 

Show/Hide the toolbar.

ShowStatusbar 

Show/Hide the statusbar.

SaveOptions 
Deprecated:
Since 5.38, no known users.
KeyBindings 

Display the configure key bindings dialog.

Preferences 

Display the preferences/options dialog.

ConfigureToolbars 

Display the toolbar configuration dialog.

Help 
Deprecated:
Since 5.38, use HelpContents instead.
HelpContents 

Display the handbook of the application.

WhatsThis 

Trigger the What's This cursor.

ReportBug 

Open up the Report Bug dialog.

AboutApp 

Display the application's About box.

AboutKDE 

Display the About KDE dialog.

TipofDay 

Display the "Tip of the Day".

ConfigureNotifications 

Display the notifications configuration dialog.

FullScreen 

Switch to/from full screen mode.

Clear 

Clear the content of the focus widget.

PasteText 
Deprecated:
Since 5.39, use Paste instead.
SwitchApplicationLanguage 

Display the Switch Application Language dialog.

DeleteFile 

Permanently deletes files or folders.

Since
5.25
RenameFile 

Renames files or folders.

Since
5.25
MoveToTrash 

Moves files or folders to the trash.

Since
5.25
Donate 

Open donation page on kde.org.

Since
5.26
HamburgerMenu 

Opens a menu that substitutes the menubar.

Since
5.81

Definition at line 118 of file kstandardaction.h.

Function Documentation

◆ _k_createInternal()

QAction * KStandardAction::_k_createInternal ( StandardAction  id,
QObject parent 
)

Definition at line 138 of file kstandardaction.cpp.

◆ aboutApp() [1/2]

QAction * KStandardAction::aboutApp ( const QObject recvr,
const char *  slot,
QObject parent 
)

Display the application's About box.

Definition at line 742 of file kstandardaction.cpp.

◆ aboutApp() [2/2]

QAction* KStandardAction::aboutApp ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Display the application's About box.

Since
5.23

◆ aboutKDE() [1/2]

QAction * KStandardAction::aboutKDE ( const QObject recvr,
const char *  slot,
QObject parent 
)

Display the About KDE dialog.

Definition at line 747 of file kstandardaction.cpp.

◆ aboutKDE() [2/2]

QAction* KStandardAction::aboutKDE ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Display the About KDE dialog.

Since
5.23

◆ actionIds()

QList< StandardAction > KStandardAction::actionIds ( )

Returns a list of all actionIds.

Since
4.2

Definition at line 57 of file kstandardaction.cpp.

◆ actualSize() [1/2]

QAction * KStandardAction::actualSize ( const QObject recvr,
const char *  slot,
QObject parent 
)

View the document at its actual size.

Definition at line 494 of file kstandardaction.cpp.

◆ actualSize() [2/2]

QAction* KStandardAction::actualSize ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

View the document at its actual size.

Since
5.23

◆ addBookmark() [1/2]

QAction * KStandardAction::addBookmark ( const QObject recvr,
const char *  slot,
QObject parent 
)

Add the current page to the bookmarks tree.

Definition at line 599 of file kstandardaction.cpp.

◆ addBookmark() [2/2]

QAction* KStandardAction::addBookmark ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Add the current page to the bookmarks tree.

Since
5.23

◆ back() [1/2]

QAction * KStandardAction::back ( const QObject recvr,
const char *  slot,
QObject parent 
)

Move back (web style menu).

Definition at line 539 of file kstandardaction.cpp.

◆ back() [2/2]

QAction* KStandardAction::back ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Move back (web style menu).

Since
5.23

◆ clear() [1/3]

QAction * KStandardAction::clear ( const QObject recvr,
const char *  slot,
QObject parent 
)

Clear the content of the focus widget.

Definition at line 459 of file kstandardaction.cpp.

◆ clear() [2/3]

QAction* KStandardAction::clear ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Clear the content of the focus widget.

Since
5.23

◆ clear() [3/3]

QAction * KStandardAction::clear ( QObject parent)

Clear selected area.

Calls clear() on the widget with the current focus. Note that for some widgets, this may not provide the intended behavior. For example if you make use of the code above and a K3ListView has the focus, clear() will clear all of the items in the list. If this is not the intended behavior and you want to make use of this slot, you can subclass K3ListView and reimplement this slot. For example the following code would implement a K3ListView without this behavior:

class MyListView : public K3ListView {
Q_OBJECT
public:
MyListView( QWidget * parent = 0, const char * name = 0, WFlags f = 0 ) : K3ListView( parent, name, f ) {}
virtual ~MyListView() {}
public Q_SLOTS:
virtual void clear() {}
};

Definition at line 650 of file kstandardaction.cpp.

◆ close() [1/2]

QAction * KStandardAction::close ( const QObject recvr,
const char *  slot,
QObject parent 
)

Close the current document.

Definition at line 412 of file kstandardaction.cpp.

◆ close() [2/2]

QAction* KStandardAction::close ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Close the current document.

Since
5.23

◆ configureNotifications() [1/2]

QAction * KStandardAction::configureNotifications ( const QObject recvr,
const char *  slot,
QObject parent 
)

Display the notifications configuration dialog.

Definition at line 705 of file kstandardaction.cpp.

◆ configureNotifications() [2/2]

QAction* KStandardAction::configureNotifications ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Display the notifications configuration dialog.

Since
5.23

◆ configureToolbars() [1/2]

QAction * KStandardAction::configureToolbars ( const QObject recvr,
const char *  slot,
QObject parent 
)

Display the toolbar configuration dialog.

Definition at line 700 of file kstandardaction.cpp.

◆ configureToolbars() [2/2]

QAction* KStandardAction::configureToolbars ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Display the toolbar configuration dialog.

Since
5.23

◆ copy() [1/3]

QAction * KStandardAction::copy ( const QObject recvr,
const char *  slot,
QObject parent 
)

Copy the selected area into the clipboard.

Definition at line 442 of file kstandardaction.cpp.

◆ copy() [2/3]

QAction* KStandardAction::copy ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Copy the selected area into the clipboard.

Since
5.23

◆ copy() [3/3]

QAction * KStandardAction::copy ( QObject parent)

Copy selected area and store it in the clipboard.

Calls copy() on the widget with the current focus.

Definition at line 640 of file kstandardaction.cpp.

◆ create() [1/2]

QAction * KStandardAction::create ( StandardAction  id,
const QObject recvr,
const char *  slot,
QObject parent 
)

Creates an action corresponding to one of the KStandardAction::StandardAction actions, which is connected to the given object and slot, and is owned by parent.

The signal that is connected to slot is triggered(bool), except for the case of OpenRecent standard action, which uses the urlSelected(const QUrl &) signal of KRecentFilesAction.

Parameters
idThe StandardAction identifier to create a QAction for.
recvrThe QObject to receive the signal, or nullptr if no notification is needed.
slotThe slot to connect the signal to (remember to use the SLOT() macro).
parentThe QObject that should own the created QAction, or nullptr if no parent will own the QAction returned (ensure you delete it manually in this case).

Definition at line 349 of file kstandardaction.cpp.

◆ create() [2/2]

QAction* KStandardAction::create ( StandardAction  id,
const QObject recvr,
Func  slot,
QObject parent,
Qt::ConnectionType  connectionType = -1 
)
inline

This overloads create() to allow using the new connect syntax.

Note
if you use OpenRecent as id, you should manually connect to the urlSelected(const QUrl &) signal of the returned KRecentFilesAction instead or use KStandardAction::openRecent(Receiver *, Func).

If not explicitely specified, connectionType will be AutoConnection for all actions except for ConfigureToolbars that will be QueuedConnection.

See also
create(StandardAction, const QObject *, const char *, QObject *)
Since
5.23 (The connectionType argument was added in 5.95)

Definition at line 251 of file kstandardaction.h.

◆ cut() [1/3]

QAction * KStandardAction::cut ( const QObject recvr,
const char *  slot,
QObject parent 
)

Cut selected area and store it in the clipboard.

Definition at line 437 of file kstandardaction.cpp.

◆ cut() [2/3]

QAction* KStandardAction::cut ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Cut selected area and store it in the clipboard.

Since
5.23

◆ cut() [3/3]

QAction * KStandardAction::cut ( QObject parent)

Cut selected area and store it in the clipboard.

Calls cut() on the widget with the current focus.

Definition at line 635 of file kstandardaction.cpp.

◆ deleteFile() [1/2]

QAction * KStandardAction::deleteFile ( const QObject recvr,
const char *  slot,
QObject parent 
)

Permanently deletes files or folders.

Since
5.25

Definition at line 752 of file kstandardaction.cpp.

◆ deleteFile() [2/2]

QAction* KStandardAction::deleteFile ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Permanently deletes files or folders.

Since
5.25

◆ deselect() [1/2]

QAction * KStandardAction::deselect ( const QObject recvr,
const char *  slot,
QObject parent 
)

Deselect any selected elements in the current document.

Definition at line 469 of file kstandardaction.cpp.

◆ deselect() [2/2]

QAction* KStandardAction::deselect ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Deselect any selected elements in the current document.

Since
5.23

◆ documentBack() [1/2]

QAction * KStandardAction::documentBack ( const QObject recvr,
const char *  slot,
QObject parent 
)

Move back (document style menu).

Definition at line 589 of file kstandardaction.cpp.

◆ documentBack() [2/2]

QAction* KStandardAction::documentBack ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Move back (document style menu).

Since
5.23

◆ documentForward() [1/2]

QAction * KStandardAction::documentForward ( const QObject recvr,
const char *  slot,
QObject parent 
)

Move forward (document style menu).

Definition at line 594 of file kstandardaction.cpp.

◆ documentForward() [2/2]

QAction* KStandardAction::documentForward ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Move forward (document style menu).

Since
5.23

◆ donate() [1/2]

QAction * KStandardAction::donate ( const QObject recvr,
const char *  slot,
QObject parent 
)

Open donation page on kde.org.

Since
5.26

Definition at line 767 of file kstandardaction.cpp.

◆ donate() [2/2]

QAction* KStandardAction::donate ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Open donation page on kde.org.

Since
5.26

◆ editBookmarks() [1/2]

QAction * KStandardAction::editBookmarks ( const QObject recvr,
const char *  slot,
QObject parent 
)

Edit the application bookmarks.

Definition at line 604 of file kstandardaction.cpp.

◆ editBookmarks() [2/2]

QAction* KStandardAction::editBookmarks ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Edit the application bookmarks.

Since
5.23

◆ find() [1/2]

QAction * KStandardAction::find ( const QObject recvr,
const char *  slot,
QObject parent 
)

Initiate a 'find' request in the current document.

Definition at line 474 of file kstandardaction.cpp.

◆ find() [2/2]

QAction* KStandardAction::find ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Initiate a 'find' request in the current document.

Since
5.23

◆ findNext() [1/2]

QAction * KStandardAction::findNext ( const QObject recvr,
const char *  slot,
QObject parent 
)

Find the next instance of a stored 'find'.

Definition at line 479 of file kstandardaction.cpp.

◆ findNext() [2/2]

QAction* KStandardAction::findNext ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Find the next instance of a stored 'find'.

Since
5.23

◆ findPrev() [1/2]

QAction * KStandardAction::findPrev ( const QObject recvr,
const char *  slot,
QObject parent 
)

Find a previous instance of a stored 'find'.

Definition at line 484 of file kstandardaction.cpp.

◆ findPrev() [2/2]

QAction* KStandardAction::findPrev ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Find a previous instance of a stored 'find'.

Since
5.23

◆ firstPage() [1/2]

QAction * KStandardAction::firstPage ( const QObject recvr,
const char *  slot,
QObject parent 
)

Jump to the first page.

Definition at line 579 of file kstandardaction.cpp.

◆ firstPage() [2/2]

QAction* KStandardAction::firstPage ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Jump to the first page.

Since
5.23

◆ fitToHeight() [1/2]

QAction * KStandardAction::fitToHeight ( const QObject recvr,
const char *  slot,
QObject parent 
)

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

Definition at line 509 of file kstandardaction.cpp.

◆ fitToHeight() [2/2]

QAction* KStandardAction::fitToHeight ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

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

Since
5.23

◆ fitToPage() [1/2]

QAction * KStandardAction::fitToPage ( const QObject recvr,
const char *  slot,
QObject parent 
)

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

Definition at line 499 of file kstandardaction.cpp.

◆ fitToPage() [2/2]

QAction* KStandardAction::fitToPage ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

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

Since
5.23

◆ fitToWidth() [1/2]

QAction * KStandardAction::fitToWidth ( const QObject recvr,
const char *  slot,
QObject parent 
)

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

Definition at line 504 of file kstandardaction.cpp.

◆ fitToWidth() [2/2]

QAction* KStandardAction::fitToWidth ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

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

Since
5.23

◆ forward() [1/2]

QAction * KStandardAction::forward ( const QObject recvr,
const char *  slot,
QObject parent 
)

Move forward (web style menu).

Definition at line 544 of file kstandardaction.cpp.

◆ forward() [2/2]

QAction* KStandardAction::forward ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Move forward (web style menu).

Since
5.23

◆ fullScreen() [1/2]

KToggleFullScreenAction * KStandardAction::fullScreen ( const QObject recvr,
const char *  slot,
QWidget window,
QObject parent 
)

Switch to/from full screen mode.

Definition at line 674 of file kstandardaction.cpp.

◆ fullScreen() [2/2]

KToggleFullScreenAction* KStandardAction::fullScreen ( const QObject recvr,
Func  slot,
QWidget window,
QObject parent 
)
inline

Switch to/from full screen mode.

Since
5.23

Definition at line 989 of file kstandardaction.h.

◆ goTo() [1/2]

QAction * KStandardAction::goTo ( const QObject recvr,
const char *  slot,
QObject parent 
)

Jump to some specific location in the document.

Definition at line 564 of file kstandardaction.cpp.

◆ goTo() [2/2]

QAction* KStandardAction::goTo ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Jump to some specific location in the document.

Since
5.23

◆ gotoLine() [1/2]

QAction * KStandardAction::gotoLine ( const QObject recvr,
const char *  slot,
QObject parent 
)

Go to a specific line.

Definition at line 574 of file kstandardaction.cpp.

◆ gotoLine() [2/2]

QAction* KStandardAction::gotoLine ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Go to a specific line.

Since
5.23

◆ gotoPage() [1/2]

QAction * KStandardAction::gotoPage ( const QObject recvr,
const char *  slot,
QObject parent 
)

Go to a specific page.

Definition at line 569 of file kstandardaction.cpp.

◆ gotoPage() [2/2]

QAction* KStandardAction::gotoPage ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Go to a specific page.

Since
5.23

◆ hamburgerMenu() [1/2]

KHamburgerMenu * KStandardAction::hamburgerMenu ( const QObject recvr,
const char *  slot,
QObject parent 
)

Opens a menu that substitutes the menubar.

Since
5.81

Definition at line 772 of file kstandardaction.cpp.

◆ hamburgerMenu() [2/2]

QAction* KStandardAction::hamburgerMenu ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Opens a menu that substitutes the menubar.

Since
5.81

◆ help() [1/2]

QAction * KStandardAction::help ( const QObject recvr,
const char *  slot,
QObject parent 
)
Deprecated:
since 5.38 Use helpContents() instead.

Definition at line 711 of file kstandardaction.cpp.

◆ help() [2/2]

QAction* KStandardAction::help ( const QObject recvr,
Func  slot,
QObject parent 
)
inline
Since
5.23
Deprecated:
since 5.38 Use helpContents() instead.

◆ helpContents() [1/2]

QAction * KStandardAction::helpContents ( const QObject recvr,
const char *  slot,
QObject parent 
)

Display the handbook of the application.

Definition at line 717 of file kstandardaction.cpp.

◆ helpContents() [2/2]

QAction* KStandardAction::helpContents ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Display the handbook of the application.

Since
5.23

◆ home() [1/2]

QAction * KStandardAction::home ( const QObject recvr,
const char *  slot,
QObject parent 
)

Go to the "Home" position or document.

Definition at line 549 of file kstandardaction.cpp.

◆ home() [2/2]

QAction* KStandardAction::home ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Go to the "Home" position or document.

Since
5.23

◆ keyBindings() [1/2]

QAction * KStandardAction::keyBindings ( const QObject recvr,
const char *  slot,
QObject parent 
)

Display the configure keyboard shortcuts dialog.

Note that you might be able to use the pre-built KXMLGUIFactory's function:

// For versions older than 5.84:
KStandardAction::keyBindings(guiFactory(), SLOT(configureShortcuts()), actionCollection());
// Starting from 5.84 you can use this (the KXMLGUIFactory::configureShortcuts() method is
// deprecated in 5.84):

Definition at line 690 of file kstandardaction.cpp.

◆ keyBindings() [2/2]

QAction* KStandardAction::keyBindings ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Display the configure key bindings dialog.

See also
keyBindings(const QObject *recvr, const char *slot, QObject *parent)
Since
5.23

◆ lastPage() [1/2]

QAction * KStandardAction::lastPage ( const QObject recvr,
const char *  slot,
QObject parent 
)

Jump to the last page.

Definition at line 584 of file kstandardaction.cpp.

◆ lastPage() [2/2]

QAction* KStandardAction::lastPage ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Jump to the last page.

Since
5.23

◆ mail() [1/2]

QAction * KStandardAction::mail ( const QObject recvr,
const char *  slot,
QObject parent 
)

Send the current document by mail.

Definition at line 417 of file kstandardaction.cpp.

◆ mail() [2/2]

QAction* KStandardAction::mail ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Mail this document.

Since
5.23

◆ moveToTrash() [1/2]

QAction * KStandardAction::moveToTrash ( const QObject recvr,
const char *  slot,
QObject parent 
)

Moves files or folders to the trash.

Since
5.25

Definition at line 762 of file kstandardaction.cpp.

◆ moveToTrash() [2/2]

QAction* KStandardAction::moveToTrash ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Moves files or folders to the trash.

Since
5.25

◆ name()

const char * KStandardAction::name ( StandardAction  id)

This will return the internal name of a given standard action.

The returned const char* only contains ASCII characters.

Definition at line 366 of file kstandardaction.cpp.

◆ next() [1/2]

QAction * KStandardAction::next ( const QObject recvr,
const char *  slot,
QObject parent 
)

Scroll down one page.

Definition at line 559 of file kstandardaction.cpp.

◆ next() [2/2]

QAction* KStandardAction::next ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Scroll down one page.

Since
5.23

◆ open() [1/2]

QAction * KStandardAction::open ( const QObject recvr,
const char *  slot,
QObject parent 
)

Open an existing file.

Definition at line 377 of file kstandardaction.cpp.

◆ open() [2/2]

QAction* KStandardAction::open ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Open an existing file.

Since
5.23

◆ openNew() [1/2]

QAction * KStandardAction::openNew ( const QObject recvr,
const char *  slot,
QObject parent 
)

Create a new document or window.

Definition at line 372 of file kstandardaction.cpp.

◆ openNew() [2/2]

QAction* KStandardAction::openNew ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Create a new document or window.

Since
5.23

◆ openRecent() [1/2]

KRecentFilesAction * KStandardAction::openRecent ( const QObject recvr,
const char *  slot,
QObject parent 
)

Open a recently used document.

The signature of the slot being called is of the form slotURLSelected( const QUrl & ).

Parameters
recvrobject to receive slot
slotThe SLOT to invoke when a URL is selected. The slot's signature is slotURLSelected( const QUrl & ).
parentparent widget

Definition at line 382 of file kstandardaction.cpp.

◆ openRecent() [2/2]

KRecentFilesAction* KStandardAction::openRecent ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

The same as openRecent(const QObject *, const char *, QObject *), but using new-style connect syntax.

See also
openRecent(const QObject *, const char *, QObject *)
Since
5.23

Definition at line 355 of file kstandardaction.h.

◆ paste() [1/3]

QAction * KStandardAction::paste ( const QObject recvr,
const char *  slot,
QObject parent 
)

Paste the contents of clipboard at the current mouse or cursor position.

Definition at line 447 of file kstandardaction.cpp.

◆ paste() [2/3]

QAction* KStandardAction::paste ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Paste the contents of clipboard at the current mouse or cursor position.

Since
5.23

◆ paste() [3/3]

QAction * KStandardAction::paste ( QObject parent)

Paste the contents of clipboard at the current mouse or cursor Calls paste() on the widget with the current focus.

Definition at line 645 of file kstandardaction.cpp.

◆ pasteText() [1/2]

QAction * KStandardAction::pasteText ( const QObject recvr,
const char *  slot,
QObject parent 
)
Deprecated:
since 5.39.

Use paste() instead.

Definition at line 453 of file kstandardaction.cpp.

◆ pasteText() [2/2]

QAction* KStandardAction::pasteText ( const QObject recvr,
Func  slot,
QObject parent 
)
inline
Since
5.23
Deprecated:
since 5.39. Use paste() instead.

◆ preferences() [1/2]

QAction * KStandardAction::preferences ( const QObject recvr,
const char *  slot,
QObject parent 
)

Display the preferences/options dialog.

Definition at line 695 of file kstandardaction.cpp.

◆ preferences() [2/2]

QAction* KStandardAction::preferences ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Display the preferences/options dialog.

Since
5.23

◆ print() [1/2]

QAction * KStandardAction::print ( const QObject recvr,
const char *  slot,
QObject parent 
)

Print the current document.

Definition at line 402 of file kstandardaction.cpp.

◆ print() [2/2]

QAction* KStandardAction::print ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Print the current document.

Since
5.23

◆ printPreview() [1/2]

QAction * KStandardAction::printPreview ( const QObject recvr,
const char *  slot,
QObject parent 
)

Show a print preview of the current document.

Definition at line 407 of file kstandardaction.cpp.

◆ printPreview() [2/2]

QAction* KStandardAction::printPreview ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Show a print preview of the current document.

Since
5.23

◆ prior() [1/2]

QAction * KStandardAction::prior ( const QObject recvr,
const char *  slot,
QObject parent 
)

Scroll up one page.

Definition at line 554 of file kstandardaction.cpp.

◆ prior() [2/2]

QAction* KStandardAction::prior ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Scroll up one page.

Since
5.23

◆ quit() [1/2]

QAction * KStandardAction::quit ( const QObject recvr,
const char *  slot,
QObject parent 
)

Quit the program.

Note that you probably want to connect this action to either QWidget::close() or QApplication::closeAllWindows(), but not QApplication::quit(), so that KMainWindow::queryClose() is called on any open window (to warn the user about unsaved changes for example).

Definition at line 422 of file kstandardaction.cpp.

◆ quit() [2/2]

QAction* KStandardAction::quit ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

◆ redisplay() [1/2]

QAction * KStandardAction::redisplay ( const QObject recvr,
const char *  slot,
QObject parent 
)

Redisplay or redraw the document.

Definition at line 529 of file kstandardaction.cpp.

◆ redisplay() [2/2]

QAction* KStandardAction::redisplay ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Redisplay or redraw the document.

Since
5.23

◆ redo() [1/2]

QAction * KStandardAction::redo ( const QObject recvr,
const char *  slot,
QObject parent 
)

Redo the last operation.

Definition at line 432 of file kstandardaction.cpp.

◆ redo() [2/2]

QAction* KStandardAction::redo ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Redo the last operation.

Since
5.23

◆ renameFile() [1/2]

QAction * KStandardAction::renameFile ( const QObject recvr,
const char *  slot,
QObject parent 
)

Renames files or folders.

Since
5.25

Definition at line 757 of file kstandardaction.cpp.

◆ renameFile() [2/2]

QAction* KStandardAction::renameFile ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Renames files or folders.

Since
5.25

◆ replace() [1/2]

QAction * KStandardAction::replace ( const QObject recvr,
const char *  slot,
QObject parent 
)

Find and replace matches.

Definition at line 489 of file kstandardaction.cpp.

◆ replace() [2/2]

QAction* KStandardAction::replace ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Find and replace matches.

Since
5.23

◆ reportBug() [1/2]

QAction * KStandardAction::reportBug ( const QObject recvr,
const char *  slot,
QObject parent 
)

Open up the Report Bug dialog.

Definition at line 732 of file kstandardaction.cpp.

◆ reportBug() [2/2]

QAction* KStandardAction::reportBug ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Open up the Report Bug dialog.

Since
5.23

◆ revert() [1/2]

QAction * KStandardAction::revert ( const QObject recvr,
const char *  slot,
QObject parent 
)

Revert the current document to the last saved version (essentially will undo all changes).

Definition at line 397 of file kstandardaction.cpp.

◆ revert() [2/2]

QAction* KStandardAction::revert ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Revert the current document to the last saved version (essentially will undo all changes).

Since
5.23

◆ save() [1/2]

QAction * KStandardAction::save ( const QObject recvr,
const char *  slot,
QObject parent 
)

Save the current document.

Definition at line 387 of file kstandardaction.cpp.

◆ save() [2/2]

QAction* KStandardAction::save ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Save the current document.

Since
5.23

◆ saveAs() [1/2]

QAction * KStandardAction::saveAs ( const QObject recvr,
const char *  slot,
QObject parent 
)

Save the current document under a different name.

Definition at line 392 of file kstandardaction.cpp.

◆ saveAs() [2/2]

QAction* KStandardAction::saveAs ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Save the current document under a different name.

Since
5.23

◆ saveOptions() [1/2]

QAction * KStandardAction::saveOptions ( const QObject recvr,
const char *  slot,
QObject parent 
)

Display the save options dialog.

Deprecated:
since 5.38

Definition at line 684 of file kstandardaction.cpp.

◆ saveOptions() [2/2]

QAction* KStandardAction::saveOptions ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Display the save options dialog.

Since
5.23
Deprecated:
since 5.38

◆ selectAll() [1/3]

QAction * KStandardAction::selectAll ( const QObject recvr,
const char *  slot,
QObject parent 
)

Select all elements in the current document.

Definition at line 464 of file kstandardaction.cpp.

◆ selectAll() [2/3]

QAction* KStandardAction::selectAll ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Select all elements in the current document.

Since
5.23

◆ selectAll() [3/3]

QAction * KStandardAction::selectAll ( QObject parent)

Calls selectAll() on the widget with the current focus.

Definition at line 655 of file kstandardaction.cpp.

◆ shortcutForActionId()

KStandardShortcut::StandardShortcut KStandardAction::shortcutForActionId ( StandardAction  id)

Returns the standardshortcut associated with actionId.

Parameters
idThe identifier whose associated shortcut is wanted.
Since
4.2

Definition at line 68 of file kstandardaction.cpp.

◆ showMenubar() [1/2]

KToggleAction * KStandardAction::showMenubar ( const QObject recvr,
const char *  slot,
QObject parent 
)

Show/Hide the menubar.

Definition at line 660 of file kstandardaction.cpp.

◆ showMenubar() [2/2]

KToggleAction* KStandardAction::showMenubar ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

The same as showMenubar(const QObject *, const char *, QObject *), but using new-style connect syntax.

See also
showMenubar(const QObject *, const char *, QObject *)
Since
5.23

Definition at line 945 of file kstandardaction.h.

◆ showStatusbar() [1/2]

KToggleAction * KStandardAction::showStatusbar ( const QObject recvr,
const char *  slot,
QObject parent 
)

Show/Hide the statusbar.

Definition at line 667 of file kstandardaction.cpp.

◆ showStatusbar() [2/2]

KToggleAction* KStandardAction::showStatusbar ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Show/Hide the statusbar.

Since
5.23

Definition at line 967 of file kstandardaction.h.

◆ spelling() [1/2]

QAction * KStandardAction::spelling ( const QObject recvr,
const char *  slot,
QObject parent 
)

Pop up the spell checker.

Definition at line 609 of file kstandardaction.cpp.

◆ spelling() [2/2]

QAction* KStandardAction::spelling ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Pop up the spell checker.

Since
5.23

◆ stdName()

const char* KStandardAction::stdName ( StandardAction  act_enum)
inline
Deprecated:
Since 4.0, use name(StandardAction)

Definition at line 275 of file kstandardaction.h.

◆ stdNames()

QStringList KStandardAction::stdNames ( )

Returns a list of all standard names.

Used by KAccelManager to give those higher weight.

Definition at line 52 of file kstandardaction.cpp.

◆ switchApplicationLanguage() [1/2]

QAction * KStandardAction::switchApplicationLanguage ( const QObject recvr,
const char *  slot,
QObject parent 
)

Display the Switch Application Language dialog.

Since
5.67

Definition at line 737 of file kstandardaction.cpp.

◆ switchApplicationLanguage() [2/2]

QAction* KStandardAction::switchApplicationLanguage ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Display the Switch Application Language dialog.

Since
5.67

◆ tipOfDay() [1/2]

QAction * KStandardAction::tipOfDay ( const QObject recvr,
const char *  slot,
QObject parent 
)

Display "Tip of the Day".

Definition at line 727 of file kstandardaction.cpp.

◆ tipOfDay() [2/2]

QAction* KStandardAction::tipOfDay ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Display "Tip of the Day".

Since
5.23

◆ undo() [1/2]

QAction * KStandardAction::undo ( const QObject recvr,
const char *  slot,
QObject parent 
)

Undo the last operation.

Definition at line 427 of file kstandardaction.cpp.

◆ undo() [2/2]

QAction* KStandardAction::undo ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Undo the last operation.

Since
5.23

◆ up() [1/2]

QAction * KStandardAction::up ( const QObject recvr,
const char *  slot,
QObject parent 
)

Move up (web style menu).

Definition at line 534 of file kstandardaction.cpp.

◆ up() [2/2]

QAction* KStandardAction::up ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Move up (web style menu).

Since
5.23

◆ whatsThis() [1/2]

QAction * KStandardAction::whatsThis ( const QObject recvr,
const char *  slot,
QObject parent 
)

Trigger the What's This cursor.

Definition at line 722 of file kstandardaction.cpp.

◆ whatsThis() [2/2]

QAction* KStandardAction::whatsThis ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Trigger the What's This cursor.

Since
5.23

◆ zoom() [1/2]

QAction * KStandardAction::zoom ( const QObject recvr,
const char *  slot,
QObject parent 
)

Select the current zoom level.

Definition at line 524 of file kstandardaction.cpp.

◆ zoom() [2/2]

QAction* KStandardAction::zoom ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Select the current zoom level.

Since
5.23

◆ zoomIn() [1/2]

QAction * KStandardAction::zoomIn ( const QObject recvr,
const char *  slot,
QObject parent 
)

Zoom in the current document view.

Definition at line 514 of file kstandardaction.cpp.

◆ zoomIn() [2/2]

QAction* KStandardAction::zoomIn ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Zoom in the current document view.

Since
5.23

◆ zoomOut() [1/2]

QAction * KStandardAction::zoomOut ( const QObject recvr,
const char *  slot,
QObject parent 
)

Zoom out the current document view.

Definition at line 519 of file kstandardaction.cpp.

◆ zoomOut() [2/2]

QAction* KStandardAction::zoomOut ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Zoom out the current document view.

Since
5.23
const QList< QKeySequence > & shortcut(StandardShortcut id)
void showConfigureShortcutsDialog()
QIcon fromTheme(const QString &name)
QAction * keyBindings(const QObject *recvr, const char *slot, QObject *parent)
Display the configure keyboard shortcuts dialog.
QAction * openNew(const QObject *recvr, const char *slot, QObject *parent)
Create a new document or window.
QString i18n(const char *text, const TYPE &arg...)
QAction * clear(const QObject *recvr, const char *slot, QObject *parent)
Clear the content of the focus widget.
@ Cut
Cut selected area and store it in the clipboard.
const char * name(StandardAction id)
This will return the internal name of a given standard action.
@ New
Create a new document or window.
QAction * cut(const QObject *recvr, const char *slot, QObject *parent)
Cut selected area and store it in the clipboard.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:50:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.