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

Method createContextMenu

src/backend/worksheet/plots/cartesian/BoxPlot.cpp:249–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249QMenu* BoxPlot::createContextMenu() {
250 if (!orientationMenu)
251 initMenus();
252
253 QMenu* menu = WorksheetElement::createContextMenu();
254 QAction* visibilityAction = this->visibilityAction();
255
256 // Orientation
257 Q_D(const BoxPlot);
258 if (d->orientation == Orientation::Horizontal)
259 orientationHorizontalAction->setChecked(true);
260 else
261 orientationVerticalAction->setChecked(true);
262 menu->insertMenu(visibilityAction, orientationMenu);
263 menu->insertSeparator(visibilityAction);
264
265 return menu;
266}
267
268void BoxPlot::retransform() {
269 Q_D(BoxPlot);

Callers

nothing calls this directly

Calls 1

visibilityActionMethod · 0.80

Tested by

no test coverage detected