@@ -183,11 +183,10 void MainWidget::initCheckboxes(QGridLayout *grid) | |||||
183 | titleCheckBox->setChecked(false); |
|
183 | titleCheckBox->setChecked(false); | |
184 | grid->addWidget(titleCheckBox, m_rowPos++, 0); |
|
184 | grid->addWidget(titleCheckBox, m_rowPos++, 0); | |
185 |
|
185 | |||
186 |
QCheckBox * |
|
186 | QCheckBox *antialiasingCheckBox = new QCheckBox("Antialiasing"); | |
187 |
connect( |
|
187 | connect(antialiasingCheckBox, SIGNAL(toggled(bool)), this, SLOT(antialiasingToggled(bool))); | |
188 |
|
|
188 | antialiasingCheckBox->setChecked(false); | |
189 |
grid->addWidget( |
|
189 | grid->addWidget(antialiasingCheckBox, m_rowPos++, 0); | |
190 |
|
||||
191 |
|
190 | |||
192 | QCheckBox *modelMapperCheckBox = new QCheckBox("Use model mapper"); |
|
191 | QCheckBox *modelMapperCheckBox = new QCheckBox("Use model mapper"); | |
193 | connect(modelMapperCheckBox, SIGNAL(toggled(bool)), this, SLOT(modelMapperToggled(bool))); |
|
192 | connect(modelMapperCheckBox, SIGNAL(toggled(bool)), this, SLOT(modelMapperToggled(bool))); | |
@@ -378,13 +377,12 void MainWidget::titleToggled(bool enabled) | |||||
378 | m_chart->setTitle(""); |
|
377 | m_chart->setTitle(""); | |
379 | } |
|
378 | } | |
380 |
|
379 | |||
381 |
void MainWidget:: |
|
380 | void MainWidget::antialiasingToggled(bool enabled) | |
382 | { |
|
381 | { | |
383 |
qDebug() << "BoxPlotTester:: |
|
382 | qDebug() << "BoxPlotTester::antialiasingToggled toggled to " << enabled; | |
384 | m_chartView->setRenderHint(QPainter::Antialiasing, enabled); |
|
383 | m_chartView->setRenderHint(QPainter::Antialiasing, enabled); | |
385 | } |
|
384 | } | |
386 |
|
385 | |||
387 |
|
||||
388 | void MainWidget::modelMapperToggled(bool enabled) |
|
386 | void MainWidget::modelMapperToggled(bool enabled) | |
389 | { |
|
387 | { | |
390 | if (enabled) { |
|
388 | if (enabled) { |
@@ -25,6 +25,7 | |||||
25 | #include "qchart.h" |
|
25 | #include "qchart.h" | |
26 | #include "qchartview.h" |
|
26 | #include "qchartview.h" | |
27 | #include "customtablemodel.h" |
|
27 | #include "customtablemodel.h" | |
|
28 | #include "pentool.h" | |||
28 | #include <QWidget> |
|
29 | #include <QWidget> | |
29 | #include <QBoxPlotSeries> |
|
30 | #include <QBoxPlotSeries> | |
30 | #include <QBarCategoryAxis> |
|
31 | #include <QBarCategoryAxis> | |
@@ -65,6 +66,8 private slots: | |||||
65 | void boxHovered(bool state, QBoxSet *set); |
|
66 | void boxHovered(bool state, QBoxSet *set); | |
66 | void singleBoxClicked(); |
|
67 | void singleBoxClicked(); | |
67 | void singleBoxHovered(bool state); |
|
68 | void singleBoxHovered(bool state); | |
|
69 | void changePen(); | |||
|
70 | void antialiasingToggled(bool); | |||
68 |
|
71 | |||
69 | private: |
|
72 | private: | |
70 | QChart *m_chart; |
|
73 | QChart *m_chart; | |
@@ -72,6 +75,7 private: | |||||
72 | QGridLayout *m_scatterLayout; |
|
75 | QGridLayout *m_scatterLayout; | |
73 | QBarCategoryAxis *m_axis; |
|
76 | QBarCategoryAxis *m_axis; | |
74 | CustomTableModel *m_model; |
|
77 | CustomTableModel *m_model; | |
|
78 | PenTool *m_penTool; | |||
75 | int m_rowPos; |
|
79 | int m_rowPos; | |
76 | int m_seriesCount; |
|
80 | int m_seriesCount; | |
77 | QBoxPlotSeries *m_series[10]; |
|
81 | QBoxPlotSeries *m_series[10]; |
General Comments 0
You need to be logged in to leave comments.
Login now