diff --git a/src/legendscrollbutton.cpp b/src/legendscrollbutton.cpp index 5e4b5f1..a6e1e57 100644 --- a/src/legendscrollbutton.cpp +++ b/src/legendscrollbutton.cpp @@ -23,7 +23,6 @@ void LegendScrollButton::mousePressEvent(QGraphicsSceneMouseEvent *event) m_ledgend->scrollButtonClicked(this); } -#include "moc_legendscrollbutton_p.cpp" QTCOMMERCIALCHART_END_NAMESPACE diff --git a/src/qlegend.cpp b/src/qlegend.cpp index 4ab3620..b96283b 100644 --- a/src/qlegend.cpp +++ b/src/qlegend.cpp @@ -66,7 +66,7 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE /*! Constructs the legend object and sets the parent to \a parent */ -QLegend::QLegend(QChart *chart):QGraphicsWidget(chart->d_ptr->m_presenter->rootItem()), +QLegend::QLegend(QChart *chart):QGraphicsWidget(chart), m_margin(5), m_pos(0,0), m_minimumSize(50,20), // TODO: magic numbers