diff --git a/src/chartpresenter.cpp b/src/chartpresenter.cpp index 509f794..b6b388d 100644 --- a/src/chartpresenter.cpp +++ b/src/chartpresenter.cpp @@ -65,7 +65,6 @@ ChartPresenter::ChartPresenter(QChart* chart,ChartDataSet* dataset):QObject(char m_chartMargins(QRect(m_marginBig,m_marginBig,0,0)) { createConnections(); - setTheme(QChart::ChartThemeLight, false); } ChartPresenter::~ChartPresenter() diff --git a/src/qchart.cpp b/src/qchart.cpp index c0ff856..87a4801 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -71,7 +71,7 @@ d_ptr(new QChartPrivate()) d_ptr->m_legend = new QLegend(this); d_ptr->m_dataset = new ChartDataSet(this); d_ptr->m_presenter = new ChartPresenter(this,d_ptr->m_dataset); - d_ptr->m_presenter->setTheme(QChart::ChartThemeDefault,false); + d_ptr->m_presenter->setTheme(QChart::ChartThemeLight, false); //TODO:fix me setMinimumSize(d_ptr->m_padding.left() * 3, d_ptr->m_padding.top() * 3); connect(d_ptr->m_dataset,SIGNAL(seriesAdded(QSeries*,Domain*)),d_ptr->m_legend,SLOT(handleSeriesAdded(QSeries*,Domain*))); connect(d_ptr->m_dataset,SIGNAL(seriesRemoved(QSeries*)),d_ptr->m_legend,SLOT(handleSeriesRemoved(QSeries*))); diff --git a/src/qlegend.h b/src/qlegend.h index 8fc17b9..a6ff2ba 100644 --- a/src/qlegend.h +++ b/src/qlegend.h @@ -117,7 +117,6 @@ private: private Q_SLOTS: void updateLayout(); - void scroll(); private: qreal m_margin;