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

Method createContextMenu

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

Source from the content-addressed store, hash-verified

121}
122
123QMenu* LollipopPlot::createContextMenu() {
124 if (!orientationMenu)
125 initMenus();
126
127 QMenu* menu = WorksheetElement::createContextMenu();
128 QAction* visibilityAction = this->visibilityAction();
129
130 // Orientation
131 Q_D(const LollipopPlot);
132 if (d->orientation == Orientation::Horizontal)
133 orientationHorizontalAction->setChecked(true);
134 else
135 orientationVerticalAction->setChecked(true);
136 menu->insertMenu(visibilityAction, orientationMenu);
137 menu->insertSeparator(visibilityAction);
138
139 return menu;
140}
141
142void LollipopPlot::retransform() {
143 Q_D(LollipopPlot);

Callers

nothing calls this directly

Calls 1

visibilityActionMethod · 0.80

Tested by

no test coverage detected