| 81 | } |
| 82 | |
| 83 | void BarPlot::initActions() { |
| 84 | // Orientation |
| 85 | auto* orientationActionGroup = new QActionGroup(this); |
| 86 | orientationActionGroup->setExclusive(true); |
| 87 | connect(orientationActionGroup, &QActionGroup::triggered, this, &BarPlot::orientationChangedSlot); |
| 88 | |
| 89 | orientationHorizontalAction = new QAction(QIcon::fromTheme(QStringLiteral("transform-move-horizontal")), i18n("Horizontal"), orientationActionGroup); |
| 90 | orientationHorizontalAction->setCheckable(true); |
| 91 | |
| 92 | orientationVerticalAction = new QAction(QIcon::fromTheme(QStringLiteral("transform-move-vertical")), i18n("Vertical"), orientationActionGroup); |
| 93 | orientationVerticalAction->setCheckable(true); |
| 94 | } |
| 95 | |
| 96 | void BarPlot::initMenus() { |
| 97 | this->initActions(); |