Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/reports/kreportchartview.cpp
Context not available. | |||||
515 | dataValueTextAttr.setPen(m_foregroundBrush.color()); | 515 | dataValueTextAttr.setPen(m_foregroundBrush.color()); | ||
---|---|---|---|---|---|
516 | dataValueAttr.setTextAttributes(dataValueTextAttr); | 516 | dataValueAttr.setTextAttributes(dataValueTextAttr); | ||
517 | dataValueAttr.setVisible(config.isChartDataLabels()); | 517 | dataValueAttr.setVisible(config.isChartDataLabels()); | ||
518 | dataValueAttr.setDecimalDigits(MyMoneyMoney::denomToPrec(MyMoneyFile::instance()->baseCurrency().smallestAccountFraction())); | 518 | dataValueAttr.setDecimalDigits(KMyMoneyGlobalSettings::pricePrecision()); | ||
519 | planeDiagram->setDataValueAttributes(dataValueAttr); | 519 | planeDiagram->setDataValueAttributes(dataValueAttr); | ||
520 | planeDiagram->setAllowOverlappingDataValueTexts(true); | 520 | planeDiagram->setAllowOverlappingDataValueTexts(true); | ||
521 | 521 | | |||
Context not available. | |||||
551 | if (!legendText.isEmpty()) | 551 | if (!legendText.isEmpty()) | ||
552 | toolTip = QString("<h2>%1</h2><strong>%2</strong><br>") | 552 | toolTip = QString("<h2>%1</h2><strong>%2</strong><br>") | ||
553 | .arg(legendText) | 553 | .arg(legendText) | ||
554 | .arg(value, 0, 'f', 2); | 554 | .arg(value, 0, 'g', KMyMoneyGlobalSettings::pricePrecision()); | ||
555 | 555 | | |||
556 | //set the cell value | 556 | //set the cell value | ||
557 | if (accountSeries()) | 557 | if (accountSeries()) | ||
Context not available. | |||||
570 | if (!legendText.isEmpty()) | 570 | if (!legendText.isEmpty()) | ||
571 | toolTip = QString("<h2>%1</h2><strong>%2</strong><br>") | 571 | toolTip = QString("<h2>%1</h2><strong>%2</strong><br>") | ||
572 | .arg(legendText) | 572 | .arg(legendText) | ||
573 | .arg(value, 0, 'f', 2); | 573 | .arg(value, 0, 'g', KMyMoneyGlobalSettings::pricePrecision()); | ||
574 | 574 | | |||
575 | if (accountSeries()) | 575 | if (accountSeries()) | ||
576 | this->setDataCell(column, rowNum, value, toolTip); | 576 | this->setDataCell(column, rowNum, value, toolTip); | ||
Context not available. |