| 55 | } |
| 56 | |
| 57 | void 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 | |
| 70 | void AxisSettings::Private::currentIndexChanged(int index) |
| 71 | { |