| 104 | } |
| 105 | |
| 106 | QMenu* 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 | |
| 125 | void BarPlot::retransform() { |
| 126 | Q_D(BarPlot); |
nothing calls this directly
no test coverage detected