mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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.
28 lines
800 B
Plaintext
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 );
|
|
|
|
};
|