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

Method initActions

src/backend/worksheet/plots/cartesian/BarPlot.cpp:83–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void 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
96void BarPlot::initMenus() {
97 this->initActions();

Callers 1

initMenusMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected