| 247 | } |
| 248 | |
| 249 | QMenu* 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 | |
| 268 | void BoxPlot::retransform() { |
| 269 | Q_D(BoxPlot); |
nothing calls this directly
no test coverage detected