MCPcopy Create free account
hub / github.com/KDAB/KDChart / init

Method init

examples/demo/axissettings.cpp:57–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void AxisSettings::Private::init()
58{
59 ui.axisSelection->addItem(QIcon(), tr("Left Y-Axis"), CartesianAxis::Left);
60 ui.axisSelection->addItem(QIcon(), tr("Right Y-Axis"), CartesianAxis::Right);
61 ui.axisSelection->addItem(QIcon(), tr("Bottom X-Axis"), CartesianAxis::Bottom);
62 ui.axisSelection->addItem(QIcon(), tr("Top X-Axis"), CartesianAxis::Top);
63 connect(ui.axisSelection, SIGNAL(currentIndexChanged(int)), this, SLOT(currentIndexChanged(int)));
64 connect(ui.axisVisibility, SIGNAL(toggled(bool)), this, SLOT(setVisible(bool)));
65 connect(ui.majorTicks, SIGNAL(toggled(bool)), this, SLOT(setShowMajorTickMarks(bool)));
66 connect(ui.minorTicks, SIGNAL(toggled(bool)), this, SLOT(setShowMinorTickMarks(bool)));
67 ui.axisSelection->setCurrentIndex(0);
68}
69
70void AxisSettings::Private::currentIndexChanged(int index)
71{

Callers 1

AxisSettingsMethod · 0.45

Calls 1

addItemMethod · 0.80

Tested by

no test coverage detected