@@ -65,7 +65,6 ChartPresenter::ChartPresenter(QChart* chart,ChartDataSet* dataset):QObject(char | |||||
65 | m_chartMargins(QRect(m_marginBig,m_marginBig,0,0)) |
|
65 | m_chartMargins(QRect(m_marginBig,m_marginBig,0,0)) | |
66 | { |
|
66 | { | |
67 | createConnections(); |
|
67 | createConnections(); | |
68 | setTheme(QChart::ChartThemeLight, false); |
|
|||
69 | } |
|
68 | } | |
70 |
|
69 | |||
71 | ChartPresenter::~ChartPresenter() |
|
70 | ChartPresenter::~ChartPresenter() |
@@ -71,7 +71,7 d_ptr(new QChartPrivate()) | |||||
71 | d_ptr->m_legend = new QLegend(this); |
|
71 | d_ptr->m_legend = new QLegend(this); | |
72 | d_ptr->m_dataset = new ChartDataSet(this); |
|
72 | d_ptr->m_dataset = new ChartDataSet(this); | |
73 | d_ptr->m_presenter = new ChartPresenter(this,d_ptr->m_dataset); |
|
73 | d_ptr->m_presenter = new ChartPresenter(this,d_ptr->m_dataset); | |
74 |
d_ptr->m_presenter->setTheme(QChart::ChartTheme |
|
74 | d_ptr->m_presenter->setTheme(QChart::ChartThemeLight, false); | |
75 | //TODO:fix me setMinimumSize(d_ptr->m_padding.left() * 3, d_ptr->m_padding.top() * 3); |
|
75 | //TODO:fix me setMinimumSize(d_ptr->m_padding.left() * 3, d_ptr->m_padding.top() * 3); | |
76 | connect(d_ptr->m_dataset,SIGNAL(seriesAdded(QSeries*,Domain*)),d_ptr->m_legend,SLOT(handleSeriesAdded(QSeries*,Domain*))); |
|
76 | connect(d_ptr->m_dataset,SIGNAL(seriesAdded(QSeries*,Domain*)),d_ptr->m_legend,SLOT(handleSeriesAdded(QSeries*,Domain*))); | |
77 | connect(d_ptr->m_dataset,SIGNAL(seriesRemoved(QSeries*)),d_ptr->m_legend,SLOT(handleSeriesRemoved(QSeries*))); |
|
77 | connect(d_ptr->m_dataset,SIGNAL(seriesRemoved(QSeries*)),d_ptr->m_legend,SLOT(handleSeriesRemoved(QSeries*))); |
General Comments 0
You need to be logged in to leave comments.
Login now