Krita Source Code Documentation
Loading...
Searching...
No Matches
KisShortcutsDialog.h File Reference

Go to the source code of this file.

Classes

class  KisShortcutsDialog
 

Variables

const auto defaultActionTypes
 Dialog for configuration of KisKActionCollection and KGlobalAccel.
 

Variable Documentation

◆ defaultActionTypes

const auto defaultActionTypes
Initial value:
@ WidgetAction
Actions which are triggered by any keypress in a widget which has the action added to it.
@ ApplicationAction
Actions which are triggered by any keypress in the application.
@ WindowAction
Actions which are triggered by any keypress in a window which has the action added to it or its child...

Dialog for configuration of KisKActionCollection and KGlobalAccel.

The KisShortcutsDialog class is used for configuring dictionaries of key/action associations for KisKActionCollection and KGlobalAccel. It uses the KShortcutsEditor widget and offers buttons to set all keys to defaults and invoke on-line help.

Several static methods are supplied which provide the most convenient interface to the dialog. The most common and most encouraged use is with KisKActionCollection.

KisShortcutsDialog::configure( actionCollection() );
Since
4.3 By default this dialog is modal. If you don't want that, setModal(false) and then the non-static configure() will show the dialog. If you want to do anything extra when the dialog is done, connect to okClicked() and/or cancelClicked(). However, if your extra stuff depends on the changed settings already being saved, connect to saved() instead to be safe; if you connect to okClicked() your function might be called before the save happens.

example:

dlg.addCollection(myActions);
dlg.setModal(false);
connect(&dlg, SIGNAL(saved()), this, SLOT(doExtraStuff()));
dlg.configure();
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void addCollection(KisKActionCollection *, const QString &title=QString())
KDE Shortcuts Dialog
Author
Nicolas Hadacek hadac.nosp@m.ek@v.nosp@m.ia.ec.nosp@m.p.fr
Hamish Rodda rodda.nosp@m.@kde.nosp@m..org (KDE 4 porting)
Michael Jansen kde@m.nosp@m.icha.nosp@m.el-ja.nosp@m.nsen.nosp@m..biz

Definition at line 82 of file KisShortcutsDialog.h.