MCPcopy Create free account
hub / github.com/KDE/labplot / evaluateKeys

Function evaluateKeys

src/backend/worksheet/plots/cartesian/CartesianPlot.cpp:69–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67};
68
69Action evaluateKeys(int key, Qt::KeyboardModifiers) {
70 if (key == Qt::Key_N)
71 return Action::NavigateNextCurve;
72 else if (key == Qt::Key_P)
73 return Action::NavigatePrevCurve;
74 else if (key == Qt::Key_T)
75 return Action::NewTextLabel;
76 else if (key == Qt::Key_R)
77 return Action::NewReferenceRange;
78 else if (key == Qt::Key_L)
79 return Action::NewReferenceLine;
80 else if (key == Qt::Key_I)
81 return Action::NewImage;
82 else if (key == Qt::Key_M)
83 return Action::NewCustomPoint;
84 else if (key == Qt::Key_Escape)
85 return Action::Abort;
86 else if (key == Qt::Key_Left)
87 return Action::MoveLeft;
88 else if (key == Qt::Key_Right)
89 return Action::MoveRight;
90 else if (key == Qt::Key_Up)
91 return Action::MoveUp;
92 else if (key == Qt::Key_Down)
93 return Action::MoveDown;
94 return Action::Abort;
95}
96}
97
98/**

Callers 1

keyPressEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected