@@ -63,11 +63,12 ChartTheme* ChartTheme::createTheme(QChart::ChartTheme theme) | |||||
63 | void ChartTheme::decorate(QChart* chart) |
|
63 | void ChartTheme::decorate(QChart* chart) | |
64 | { |
|
64 | { | |
65 | chart->setChartBackgroundBrush(m_backgroundGradient); |
|
65 | chart->setChartBackgroundBrush(m_backgroundGradient); | |
|
66 | chart->setChartTitleFont(m_masterFont); | |||
66 | } |
|
67 | } | |
67 |
|
68 | |||
68 | void ChartTheme::decorate(QLegend* legend) |
|
69 | void ChartTheme::decorate(QLegend* legend) | |
69 | { |
|
70 | { | |
70 | legend->setBackgroundBrush(m_backgroundGradient); |
|
71 | //legend->setBackgroundBrush(m_backgroundGradient); | |
71 | } |
|
72 | } | |
72 |
|
73 | |||
73 | void ChartTheme::decorate(AreaChartItem* item, QAreaSeries* series, int index) |
|
74 | void ChartTheme::decorate(AreaChartItem* item, QAreaSeries* series, int index) |
@@ -53,8 +53,8 QChart::QChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) : QGraphicsWidget( | |||||
53 | m_presenter(new ChartPresenter(this,m_dataset)) |
|
53 | m_presenter(new ChartPresenter(this,m_dataset)) | |
54 | { |
|
54 | { | |
55 | createLegend(); |
|
55 | createLegend(); | |
56 | connect(m_dataset,SIGNAL(seriesAdded(QSeries*,Domain*)),m_legend,SLOT(handleSeriesAdded(QSeries*,Domain*))); |
|
56 | // connect(m_dataset,SIGNAL(seriesAdded(QSeries*,Domain*)),m_legend,SLOT(handleSeriesAdded(QSeries*,Domain*))); | |
57 | connect(m_dataset,SIGNAL(seriesRemoved(QSeries*)),m_legend,SLOT(handleSeriesRemoved(QSeries*))); |
|
57 | // connect(m_dataset,SIGNAL(seriesRemoved(QSeries*)),m_legend,SLOT(handleSeriesRemoved(QSeries*))); | |
58 | } |
|
58 | } | |
59 |
|
59 | |||
60 | /*! |
|
60 | /*! | |
@@ -62,8 +62,8 QChart::QChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) : QGraphicsWidget( | |||||
62 | */ |
|
62 | */ | |
63 | QChart::~QChart() |
|
63 | QChart::~QChart() | |
64 | { |
|
64 | { | |
65 | disconnect(m_dataset,SIGNAL(seriesAdded(QSeries*,Domain*)),m_legend,SLOT(handleSeriesAdded(QSeries*,Domain*))); |
|
65 | // disconnect(m_dataset,SIGNAL(seriesAdded(QSeries*,Domain*)),m_legend,SLOT(handleSeriesAdded(QSeries*,Domain*))); | |
66 | disconnect(m_dataset,SIGNAL(seriesRemoved(QSeries*)),m_legend,SLOT(handleSeriesRemoved(QSeries*))); |
|
66 | // disconnect(m_dataset,SIGNAL(seriesRemoved(QSeries*)),m_legend,SLOT(handleSeriesRemoved(QSeries*))); | |
67 | } |
|
67 | } | |
68 |
|
68 | |||
69 | /*! |
|
69 | /*! |
General Comments 0
You need to be logged in to leave comments.
Login now