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

Method createContextMenu

src/backend/worksheet/plots/cartesian/BarPlot.cpp:106–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106QMenu* BarPlot::createContextMenu() {
107 if (!orientationMenu)
108 initMenus();
109
110 QMenu* menu = WorksheetElement::createContextMenu();
111 QAction* visibilityAction = this->visibilityAction();
112
113 // Orientation
114 Q_D(const BarPlot);
115 if (d->orientation == Orientation::Horizontal)
116 orientationHorizontalAction->setChecked(true);
117 else
118 orientationVerticalAction->setChecked(true);
119 menu->insertMenu(visibilityAction, orientationMenu);
120 menu->insertSeparator(visibilityAction);
121
122 return menu;
123}
124
125void BarPlot::retransform() {
126 Q_D(BarPlot);

Callers

nothing calls this directly

Calls 1

visibilityActionMethod · 0.80

Tested by

no test coverage detected