MCPcopy Create free account
hub / github.com/KDE/labplot / initActions

Method initActions

src/backend/worksheet/plots/cartesian/ReferenceRange.cpp:113–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void 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
135void ReferenceRange::initMenus() {
136 this->initActions();

Callers 1

initMenusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected