| 224 | } |
| 225 | |
| 226 | void BoxPlot::initActions() { |
| 227 | // Orientation |
| 228 | auto* orientationActionGroup = new QActionGroup(this); |
| 229 | orientationActionGroup->setExclusive(true); |
| 230 | connect(orientationActionGroup, &QActionGroup::triggered, this, &BoxPlot::orientationChangedSlot); |
| 231 | |
| 232 | orientationHorizontalAction = new QAction(QIcon::fromTheme(QStringLiteral("transform-move-horizontal")), i18n("Horizontal"), orientationActionGroup); |
| 233 | orientationHorizontalAction->setCheckable(true); |
| 234 | |
| 235 | orientationVerticalAction = new QAction(QIcon::fromTheme(QStringLiteral("transform-move-vertical")), i18n("Vertical"), orientationActionGroup); |
| 236 | orientationVerticalAction->setCheckable(true); |
| 237 | } |
| 238 | |
| 239 | void BoxPlot::initMenus() { |
| 240 | this->initActions(); |