void pieDialog::setMultiLayerPlot(MultiLayer *m) { mPlot = m; Graph* g = (Graph*)mPlot->activeGraph(); QwtPieCurve *pie = (QwtPieCurve *)g->curve(0); if (!pie) return; Plot *p = g->plotWidget(); boxMargin->setValue (p->margin()); boxBorderWidth->setValue(p->lineWidth()); boxBorderColor->setColor(p->frameColor()); boxBackgroundColor->setColor(p->paletteBackgroundColor()); boxCanvasColor->setColor(p->canvasBackground()); curvesList->insertItem(pie->title().text()); curvesList->setCurrentItem (0); boxRay->setValue(pie->ray()); boxPattern->setPattern(pie->pattern()); boxLineWidth->setValue(pie->pen().width()); boxLineColor->setColor(pie->pen().color()); setBorderStyle(pie->pen().style()); boxFirstColor->setCurrentItem(pie->first()); }