Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/widgets/transaction.cpp
Show First 20 Lines • Show All 1555 Lines • ▼ Show 20 Line(s) | 1555 | case LabelColumn2: | |||
---|---|---|---|---|---|
1556 | align |= Qt::AlignLeft; | 1556 | align |= Qt::AlignLeft; | ||
1557 | if (havePrice()) | 1557 | if (havePrice()) | ||
1558 | txt = i18n("Price/share"); | 1558 | txt = i18n("Price/share"); | ||
1559 | break; | 1559 | break; | ||
1560 | 1560 | | |||
1561 | case ValueColumn2: | 1561 | case ValueColumn2: | ||
1562 | align |= Qt::AlignRight; | 1562 | align |= Qt::AlignRight; | ||
1563 | if ((fieldEditable = havePrice()) == true && !m_split.shares().isZero()) { | 1563 | if ((fieldEditable = havePrice()) == true && !m_split.shares().isZero()) { | ||
1564 | txt = m_split.price().formatMoney("", KMyMoneyGlobalSettings::pricePrecision()); | 1564 | txt = m_split.price().formatMoney("", m_security.pricePrecision()); | ||
1565 | } | 1565 | } | ||
1566 | break; | 1566 | break; | ||
1567 | } | 1567 | } | ||
1568 | break; | 1568 | break; | ||
1569 | 1569 | | |||
1570 | case 3: | 1570 | case 3: | ||
1571 | switch (col) { | 1571 | switch (col) { | ||
1572 | case LabelColumn1: | 1572 | case LabelColumn1: | ||
▲ Show 20 Lines • Show All 140 Lines • ▼ Show 20 Line(s) | 1709 | case QuantityColumn: | |||
1713 | else if (haveSplitRatio()) { | 1713 | else if (haveSplitRatio()) { | ||
1714 | txt = QString("1 / %1").arg(m_split.shares().abs().formatMoney("", -1)); | 1714 | txt = QString("1 / %1").arg(m_split.shares().abs().formatMoney("", -1)); | ||
1715 | } | 1715 | } | ||
1716 | break; | 1716 | break; | ||
1717 | 1717 | | |||
1718 | case PriceColumn: | 1718 | case PriceColumn: | ||
1719 | align |= Qt::AlignRight; | 1719 | align |= Qt::AlignRight; | ||
1720 | if (havePrice() && !m_split.shares().isZero()) { | 1720 | if (havePrice() && !m_split.shares().isZero()) { | ||
1721 | txt = m_split.price().formatMoney(m_currency.tradingSymbol(), KMyMoneyGlobalSettings::pricePrecision()); | 1721 | txt = m_split.price().formatMoney(m_currency.tradingSymbol(), m_security.pricePrecision()); | ||
1722 | } | 1722 | } | ||
1723 | break; | 1723 | break; | ||
1724 | 1724 | | |||
1725 | case ValueColumn: | 1725 | case ValueColumn: | ||
1726 | align |= Qt::AlignRight; | 1726 | align |= Qt::AlignRight; | ||
1727 | if (haveAmount()) { | 1727 | if (haveAmount()) { | ||
1728 | txt = MyMoneyUtils::formatMoney(m_assetAccountSplit.value().abs(), m_currency); | 1728 | txt = MyMoneyUtils::formatMoney(m_assetAccountSplit.value().abs(), m_currency); | ||
1729 | 1729 | | |||
▲ Show 20 Lines • Show All 468 Lines • Show Last 20 Lines |