From 5e6c401557744fe5f9765471605cc793939fee1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 17 Mar 2022 18:50:52 +0100 Subject: Added controlled conversions to char* instead of automatic ascii conversions. The definition of -UTQT_NO_ASCII_CAST is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kmymoney2/reports/objectinfotable.cpp | 2 +- kmymoney2/reports/pivottable.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'kmymoney2/reports') diff --git a/kmymoney2/reports/objectinfotable.cpp b/kmymoney2/reports/objectinfotable.cpp index 75ed019..1e80538 100644 --- a/kmymoney2/reports/objectinfotable.cpp +++ b/kmymoney2/reports/objectinfotable.cpp @@ -172,7 +172,7 @@ void ObjectInfoTable::constructScheduleTable ( void ) scheduleRow["name"] = schedule.name(); scheduleRow["nextduedate"] = schedule.nextDueDate().toString ( Qt::ISODate ); scheduleRow["type"] = KMyMoneyUtils::scheduleTypeToString ( schedule.type() ); - scheduleRow["occurence"] = i18n( schedule.occurenceToString() ); + scheduleRow["occurence"] = i18n(schedule.occurenceToString().utf8()); scheduleRow["paymenttype"] = KMyMoneyUtils::paymentMethodToString ( schedule.paymentType() ); //scheduleRow["category"] = account.name(); diff --git a/kmymoney2/reports/pivottable.cpp b/kmymoney2/reports/pivottable.cpp index 6035d20..3deb988 100644 --- a/kmymoney2/reports/pivottable.cpp +++ b/kmymoney2/reports/pivottable.cpp @@ -1636,7 +1636,7 @@ TQString PivotTable::renderHTML( void ) const for(unsigned i = 0; i < m_rowTypeList.size(); ++i) { result += TQString("%1") - .arg(i18n( m_columnTypeHeaderList[i] )) + .arg(i18n(m_columnTypeHeaderList[i].utf8())) .arg(i == 0 ? lb : TQString() ); } column++; @@ -1644,7 +1644,7 @@ TQString PivotTable::renderHTML( void ) const if ( m_config_f.isShowingRowTotals() ) { for(unsigned i = 0; i < m_rowTypeList.size(); ++i) { result += TQString("%1") - .arg(i18n( m_columnTypeHeaderList[i] )) + .arg(i18n(m_columnTypeHeaderList[i].utf8())) .arg(i == 0 ? leftborder : TQString() ); } } -- cgit v1.2.1