@@ -20,8 +20,6 | |||||
20 |
|
20 | |||
21 | #include "boxdatareader.h" |
|
21 | #include "boxdatareader.h" | |
22 |
|
22 | |||
23 | #include <QDebug> |
|
|||
24 |
|
||||
25 | BoxDataReader::BoxDataReader(QIODevice *device) : |
|
23 | BoxDataReader::BoxDataReader(QIODevice *device) : | |
26 | QTextStream(device) |
|
24 | QTextStream(device) | |
27 | { |
|
25 | { | |
@@ -54,9 +52,6 QBoxSet* BoxDataReader::readBox() | |||||
54 | else // even amount of numbers |
|
52 | else // even amount of numbers | |
55 | box->setUpperQuartile(findMedian(count / 2, count)); |
|
53 | box->setUpperQuartile(findMedian(count / 2, count)); | |
56 |
|
54 | |||
57 | qDebug() << "Box = " << box->lowerExtreme() << ", " << box->lowerQuartile() << ", " << |
|
|||
58 | box->median() << ", " << box->upperQuartile() << ", " << box->upperExtreme(); |
|
|||
59 |
|
||||
60 | return box; |
|
55 | return box; | |
61 | } |
|
56 | } | |
62 |
|
57 |
@@ -28,8 +28,6 | |||||
28 |
|
28 | |||
29 | #include "boxdatareader.h" |
|
29 | #include "boxdatareader.h" | |
30 |
|
30 | |||
31 | #include <QDebug> |
|
|||
32 |
|
||||
33 | QTCOMMERCIALCHART_USE_NAMESPACE |
|
31 | QTCOMMERCIALCHART_USE_NAMESPACE | |
34 |
|
32 | |||
35 | int main(int argc, char *argv[]) |
|
33 | int main(int argc, char *argv[]) | |
@@ -62,10 +60,7 int main(int argc, char *argv[]) | |||||
62 | //![3] |
|
60 | //![3] | |
63 |
|
61 | |||
64 | //![4] |
|
62 | //![4] | |
65 | //QStringList categories; |
|
|||
66 | //categories << "Jan" << "Feb" << "Mar" << "Apr" << "May" << "Jun" << "Jul" << "Aug" << "Sep" << "Oct" << "Nov" << "Dec"; |
|
|||
67 | QBarCategoryAxis *axis = new QBarCategoryAxis(); |
|
63 | QBarCategoryAxis *axis = new QBarCategoryAxis(); | |
68 | //axis->append(categories); |
|
|||
69 | chart->createDefaultAxes(); |
|
64 | chart->createDefaultAxes(); | |
70 | chart->setAxisX(axis, series); |
|
65 | chart->setAxisX(axis, series); | |
71 | //![4] |
|
66 | //![4] |
General Comments 0
You need to be logged in to leave comments.
Login now