#include <dpadcontextmenu.h>
|
int | getPresetIndex () |
| Find the appropriate menu item index for the currently assigned slots that are assigned to a DPad. More...
|
|
◆ DPadContextMenu()
DPadContextMenu::DPadContextMenu |
( |
JoyDPad * |
dpad, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ buildMenu()
void DPadContextMenu::buildMenu |
( |
| ) |
|
Generate the context menu that will be shown to a user when the person right clicks on the DPad settings button.
◆ generateActionMode()
void DPadContextMenu::generateActionMode |
( |
QActionGroup * |
modesGroup, |
|
|
QAction * |
action, |
|
|
QString |
actionText, |
|
|
int |
currentPreset, |
|
|
int |
presetMode |
|
) |
| |
|
private |
◆ generateActionPreset()
void DPadContextMenu::generateActionPreset |
( |
QAction * |
action, |
|
|
QString |
actionText, |
|
|
int |
currentPreset, |
|
|
int & |
presetMode, |
|
|
QActionGroup * |
presetGroup |
|
) |
| |
|
private |
◆ getHelper()
◆ getPresetIndex()
int DPadContextMenu::getPresetIndex |
( |
| ) |
|
|
protected |
Find the appropriate menu item index for the currently assigned slots that are assigned to a DPad.
- Returns
- Menu index that corresponds to the currently assigned preset choice. 0 means that no matching preset was found.
◆ openMouseSettingsDialog
void DPadContextMenu::openMouseSettingsDialog |
( |
| ) |
|
|
privateslot |
Open a mouse settings dialog for changing the mouse speed settings for all DPad buttons.
◆ setDPadMode
void DPadContextMenu::setDPadMode |
( |
QAction * |
action | ) |
|
|
privateslot |
Set the appropriate mode for a DPad based on the item chosen.
◆ setDPadPreset
void DPadContextMenu::setDPadPreset |
( |
QAction * |
action | ) |
|
|
privateslot |
Assign the appropriate slots to DPad buttons based on the preset item that was chosen.
◆ dpad
◆ helper
The documentation for this class was generated from the following files: