Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/reports/listtable.cpp
Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Line(s) | 192 | if (!m_config.isHideTransactions() || rowRank == 4 || rowRank == 5) { // if hide transaction is enabled display only total rows i.e. rank = 4 || rank = 5 | |||
---|---|---|---|---|---|
201 | } else if (rowRank == 1) { | 201 | } else if (rowRank == 1) { | ||
202 | row_odd = ! row_odd; | 202 | row_odd = ! row_odd; | ||
203 | tlink = QString::fromLatin1("id=%1&tid=%2").arg((*it_row).value(ctAccountID), (*it_row).value(ctID)); | 203 | tlink = QString::fromLatin1("id=%1&tid=%2").arg((*it_row).value(ctAccountID), (*it_row).value(ctID)); | ||
204 | result.append(QString::fromLatin1("<tr class=\"row-%1\">").arg(row_odd ? QLatin1String("odd") : QLatin1String("even"))); | 204 | result.append(QString::fromLatin1("<tr class=\"row-%1\">").arg(row_odd ? QLatin1String("odd") : QLatin1String("even"))); | ||
205 | } else if (rowRank == 2) { | 205 | } else if (rowRank == 2) { | ||
206 | result.append(QString::fromLatin1("<tr class=\"item%1\">").arg(row_odd ? QLatin1Char('1') : QLatin1Char('0'))); | 206 | result.append(QString::fromLatin1("<tr class=\"item%1\">").arg(row_odd ? QLatin1Char('1') : QLatin1Char('0'))); | ||
207 | } else if (rowRank == 4 || rowRank == 5) { | 207 | } else if (rowRank == 4 || rowRank == 5) { | ||
208 | QList<TableRow>::const_iterator nextRow = std::next(it_row); | 208 | QList<TableRow>::const_iterator nextRow = std::next(it_row); | ||
209 | if ((m_config.rowType() == MyMoneyReport::eTag)) { //If we order by Tags don't show the Grand total as we can have multiple tags per transaction | 209 | if ((m_config.rowType() == MyMoneyReport::Row::Tag)) { //If we order by Tags don't show the Grand total as we can have multiple tags per transaction | ||
210 | continue; | 210 | continue; | ||
211 | } else if (rowRank == 4) { | 211 | } else if (rowRank == 4) { | ||
212 | if (nextRow != m_rows.end()) { | 212 | if (nextRow != m_rows.end()) { | ||
213 | if (isLowestGroupTotal && m_config.isHideTransactions()) { | 213 | if (isLowestGroupTotal && m_config.isHideTransactions()) { | ||
214 | result.append(QLatin1String("<tr class=\"sectionfootermiddle\">")); | 214 | result.append(QLatin1String("<tr class=\"sectionfootermiddle\">")); | ||
215 | isLowestGroupTotal = false; | 215 | isLowestGroupTotal = false; | ||
216 | } else if ((*nextRow).value(ctRank) == QLatin1String("5")) { | 216 | } else if ((*nextRow).value(ctRank) == QLatin1String("5")) { | ||
217 | result.append(QLatin1String("<tr class=\"sectionfooterfirst\">")); | 217 | result.append(QLatin1String("<tr class=\"sectionfooterfirst\">")); | ||
▲ Show 20 Lines • Show All 525 Lines • Show Last 20 Lines |