| 22 | } |
| 23 | |
| 24 | void FrameWidget::setChart(KDChart::Chart *chart) |
| 25 | { |
| 26 | mChart = chart; |
| 27 | // This is necessary because Chart can't automatically schedule somebody else (this object) to |
| 28 | // call its custom paint method. |
| 29 | connect(mChart, SIGNAL(propertiesChanged()), SLOT(update())); |
| 30 | } |
| 31 | |
| 32 | void FrameWidget::paintEvent(QPaintEvent *e) |
| 33 | { |