KXmlGui
kshortcutsdialog.h
37 * KShortcutsDialog::configure(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, parent);
40 * KShortcutsDialog::showDialog(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, parent);
100 explicit KShortcutsDialog(KShortcutsEditor::ActionTypes actionTypes = KShortcutsEditor::AllActions,
101 KShortcutsEditor::LetterShortcuts allowLetterShortcuts = KShortcutsEditor::LetterShortcutsAllowed,
159 * KShortcutsDialog::showDialog(actionCollection(), KShortcutsEditor::LetterShortcutsAllowed, parent);
171 KShortcutsEditor::LetterShortcuts allowLetterShortcuts = KShortcutsEditor::LetterShortcutsAllowed,
KShortcutsDialog(KShortcutsEditor::ActionTypes actionTypes=KShortcutsEditor::AllActions, KShortcutsEditor::LetterShortcuts allowLetterShortcuts=KShortcutsEditor::LetterShortcutsAllowed, QWidget *parent=nullptr)
Constructs a KShortcutsDialog as a child of parent.
Definition kshortcutsdialog.cpp:145
void importConfiguration(const QString &path)
Imports a shortcuts set up from path.
Definition kshortcutsdialog.cpp:251
void addActionToSchemesMoreButton(QAction *action)
This adds a QAction to the "More Actions" menu.
Definition kshortcutsdialog.cpp:268
void saved()
Emitted after the dialog is accepted (by clicking the OK button) and settings are saved.
void exportConfiguration(const QString &path) const
Exports a shortcuts set up from path.
Definition kshortcutsdialog.cpp:257
QList< KActionCollection * > actionCollections() const
Definition kshortcutsdialog.cpp:207
void refreshSchemes()
Reloads the list of schemes in the "Manage Schemes" section.
Definition kshortcutsdialog.cpp:263
bool configure(bool saveSettings=true)
Run the dialog and call writeSettings() on the action collections that were added if saveSettings is ...
Definition kshortcutsdialog.cpp:214
static void showDialog(KActionCollection *collection, KShortcutsEditor::LetterShortcuts allowLetterShortcuts=KShortcutsEditor::LetterShortcutsAllowed, QWidget *parent=nullptr)
This static method shows a modal dialog that can be used to configure the shortcuts associated with e...
Definition kshortcutsdialog.cpp:240
void addCollection(KActionCollection *collection, const QString &title={})
Add all actions of the collection to the ones displayed and configured by the dialog.
Definition kshortcutsdialog.cpp:201
QFlags< ActionType > ActionTypes
Stores a combination of ActionType values.
Definition kshortcutseditor.h:74
QDialog(QWidget *parent, Qt::WindowFlags f)
virtual void accept()
virtual QSize sizeHint() const const override
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:03:25 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 12:03:25 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.