@@ -40,7 +40,7 public: | |||||
40 | // generate random data |
|
40 | // generate random data | |
41 | int listCount = 3; |
|
41 | int listCount = 3; | |
42 | int valueMax = 100; |
|
42 | int valueMax = 100; | |
43 |
int valueCount = |
|
43 | int valueCount = 11; | |
44 | for (int i(0); i < listCount; i++) { |
|
44 | for (int i(0); i < listCount; i++) { | |
45 | DataList dataList; |
|
45 | DataList dataList; | |
46 | for (int j(0); j < valueCount; j++) { |
|
46 | for (int j(0); j < valueCount; j++) { | |
@@ -62,6 +62,7 public: | |||||
62 | m_themeComboBox->addItem("Grayscale", QChart::ChartThemeGrayscale); |
|
62 | m_themeComboBox->addItem("Grayscale", QChart::ChartThemeGrayscale); | |
63 | m_themeComboBox->addItem("Scientific", QChart::ChartThemeScientific); |
|
63 | m_themeComboBox->addItem("Scientific", QChart::ChartThemeScientific); | |
64 | m_themeComboBox->addItem("Blue Cerulean", QChart::ChartThemeBlueCerulean); |
|
64 | m_themeComboBox->addItem("Blue Cerulean", QChart::ChartThemeBlueCerulean); | |
|
65 | m_themeComboBox->addItem("Light", QChart::ChartThemeLight); | |||
65 | connect(m_themeComboBox, SIGNAL(currentIndexChanged(int)), this ,SLOT(updateTheme())); |
|
66 | connect(m_themeComboBox, SIGNAL(currentIndexChanged(int)), this ,SLOT(updateTheme())); | |
66 | baseLayout->addWidget(new QLabel("Theme:"), 0, 0); |
|
67 | baseLayout->addWidget(new QLabel("Theme:"), 0, 0); | |
67 | baseLayout->addWidget(m_themeComboBox, 0, 1); |
|
68 | baseLayout->addWidget(m_themeComboBox, 0, 1); |
General Comments 0
You need to be logged in to leave comments.
Login now