Changeset View
Changeset View
Standalone View
Standalone View
plugins/chartshape/ChartConfigWidget.cpp
Show First 20 Lines • Show All 513 Lines • ▼ Show 20 Line(s) | 336 | { | |||
---|---|---|---|---|---|
514 | connect(d->ui.gapBetweenSets, SIGNAL(valueChanged(int)), | 514 | connect(d->ui.gapBetweenSets, SIGNAL(valueChanged(int)), | ||
515 | this, SIGNAL(gapBetweenSetsChanged(int))); | 515 | this, SIGNAL(gapBetweenSetsChanged(int))); | ||
516 | connect(d->ui.pieExplodeFactor, SIGNAL(valueChanged(int)), | 516 | connect(d->ui.pieExplodeFactor, SIGNAL(valueChanged(int)), | ||
517 | this, SLOT(ui_dataSetPieExplodeFactorChanged(int))); | 517 | this, SLOT(ui_dataSetPieExplodeFactorChanged(int))); | ||
518 | 518 | | |||
519 | // "Legend" tab | 519 | // "Legend" tab | ||
520 | connect(d->ui.legendTitle, SIGNAL(textChanged(QString)), | 520 | connect(d->ui.legendTitle, SIGNAL(textChanged(QString)), | ||
521 | this, SIGNAL(legendTitleChanged(QString))); | 521 | this, SIGNAL(legendTitleChanged(QString))); | ||
522 | connect(d->ui.legendShowFrame, SIGNAL(toggled(bool)), | | |||
523 | this, SIGNAL(legendShowFrameChanged(bool))); | | |||
524 | connect(d->ui.legendOrientationIsVertical, SIGNAL(toggled(bool)), | 522 | connect(d->ui.legendOrientationIsVertical, SIGNAL(toggled(bool)), | ||
525 | this, SLOT(setLegendOrientationIsVertical(bool))); | 523 | this, SLOT(setLegendOrientationIsVertical(bool))); | ||
526 | 524 | | |||
527 | // Second part of "Plot Area" tab. | 525 | // Second part of "Plot Area" tab. | ||
528 | // FIXME: Is there any particular reason it's separated from the Labels? | 526 | // FIXME: Is there any particular reason it's separated from the Labels? | ||
529 | d->ui.addAxis->setIcon(koIcon("list-add")); | 527 | d->ui.addAxis->setIcon(koIcon("list-add")); | ||
530 | d->ui.removeAxis->setIcon(koIcon("list-remove")); | 528 | d->ui.removeAxis->setIcon(koIcon("list-remove")); | ||
531 | 529 | | |||
▲ Show 20 Lines • Show All 723 Lines • ▼ Show 20 Line(s) | 1252 | if (d->shape->legend()) { | |||
1255 | d->ui.legendTitle->blockSignals(true); | 1253 | d->ui.legendTitle->blockSignals(true); | ||
1256 | d->ui.showLegend->setChecked(d->shape->legend()->isVisible()); | 1254 | d->ui.showLegend->setChecked(d->shape->legend()->isVisible()); | ||
1257 | d->ui.legendTitle->blockSignals(false); | 1255 | d->ui.legendTitle->blockSignals(false); | ||
1258 | 1256 | | |||
1259 | d->ui.legendTitle->blockSignals(true); | 1257 | d->ui.legendTitle->blockSignals(true); | ||
1260 | d->ui.legendTitle->setText(d->shape->legend()->title()); | 1258 | d->ui.legendTitle->setText(d->shape->legend()->title()); | ||
1261 | d->ui.legendTitle->blockSignals(false); | 1259 | d->ui.legendTitle->blockSignals(false); | ||
1262 | 1260 | | |||
1263 | d->ui.legendTitle->blockSignals(true); | | |||
1264 | d->ui.legendShowFrame->setChecked(d->shape->legend()->showFrame()); | | |||
1265 | d->ui.legendTitle->blockSignals(false); | | |||
1266 | | ||||
1267 | if (d->shape->legend()->expansion() == HighLegendExpansion) { | 1261 | if (d->shape->legend()->expansion() == HighLegendExpansion) { | ||
1268 | d->ui.legendOrientationIsVertical->setChecked(true); | 1262 | d->ui.legendOrientationIsVertical->setChecked(true); | ||
1269 | } else { | 1263 | } else { | ||
1270 | d->ui.legendOrientationIsHorizontal->setChecked(true); | 1264 | d->ui.legendOrientationIsHorizontal->setChecked(true); | ||
1271 | } | 1265 | } | ||
1272 | } | 1266 | } | ||
1273 | 1267 | | |||
1274 | bool enableMarkers = !(d->type == BarChartType || d->type == StockChartType || d->type == CircleChartType | 1268 | bool enableMarkers = !(d->type == BarChartType || d->type == StockChartType || d->type == CircleChartType | ||
▲ Show 20 Lines • Show All 679 Lines • Show Last 20 Lines |