QGIS/python/gui/qgsconfigureshortcutsdialog.sip
Nyall Dawson e0c87ffe6b [FEATURE] Move QgsShortcutsManager, QgsConfigureShortcutsDialog to gui
This allows plugins to reuse the shortcuts manager if they
want to add the ability for users to customise their shortcut
key sequences.

The shortcut manager has been extended to also handle customisation
of QShortcut objects as well as QActions.
2016-06-02 10:25:16 +10:00

28 lines
800 B
Plaintext

/** \ingroup gui
* \class QgsConfigureShortcutsDialog
* Reusable dialog for allowing users to configure shortcuts contained in a QgsShortcutsManager.
* \note added in QGIS 2.16
*/
class QgsConfigureShortcutsDialog: QDialog
{
%TypeHeaderCode
#include <qgsconfigureshortcutsdialog.h>
%End
public:
/** Constructor for QgsConfigureShortcutsDialog.
* @param parent parent widget
* @param manager associated QgsShortcutsManager, or leave as null to use the default
* singleton QgsShortcutsManager instance.
*/
QgsConfigureShortcutsDialog( QWidget* parent /TransferThis/ = nullptr, QgsShortcutsManager* manager = nullptr );
~QgsConfigureShortcutsDialog();
protected:
void keyPressEvent( QKeyEvent * event );
void keyReleaseEvent( QKeyEvent * event );
};