| 111 | } |
| 112 | |
| 113 | void ReferenceRange::initActions() { |
| 114 | // Orientation |
| 115 | auto* orientationActionGroup = new QActionGroup(this); |
| 116 | orientationActionGroup->setExclusive(true); |
| 117 | connect(orientationActionGroup, &QActionGroup::triggered, this, &ReferenceRange::orientationChangedSlot); |
| 118 | |
| 119 | orientationHorizontalAction = new QAction(QIcon::fromTheme(QStringLiteral("labplot-axis-horizontal")), i18n("Horizontal"), orientationActionGroup); |
| 120 | orientationHorizontalAction->setCheckable(true); |
| 121 | |
| 122 | orientationVerticalAction = new QAction(QIcon::fromTheme(QStringLiteral("labplot-axis-vertical")), i18n("Vertical"), orientationActionGroup); |
| 123 | orientationVerticalAction->setCheckable(true); |
| 124 | |
| 125 | // Line |
| 126 | lineStyleActionGroup = new QActionGroup(this); |
| 127 | lineStyleActionGroup->setExclusive(true); |
| 128 | connect(lineStyleActionGroup, &QActionGroup::triggered, this, &ReferenceRange::lineStyleChanged); |
| 129 | |
| 130 | lineColorActionGroup = new QActionGroup(this); |
| 131 | lineColorActionGroup->setExclusive(true); |
| 132 | connect(lineColorActionGroup, &QActionGroup::triggered, this, &ReferenceRange::lineColorChanged); |
| 133 | } |
| 134 | |
| 135 | void ReferenceRange::initMenus() { |
| 136 | this->initActions(); |