summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/views')
-rw-r--r--kmymoney2/views/khomeview.cpp6
-rw-r--r--kmymoney2/views/kmymoneyview.cpp2
-rw-r--r--kmymoney2/views/kreportsview.cpp4
-rw-r--r--kmymoney2/views/kscheduledlistitem.cpp2
4 files changed, 7 insertions, 7 deletions
diff --git a/kmymoney2/views/khomeview.cpp b/kmymoney2/views/khomeview.cpp
index 86157f4..8b98b2a 100644
--- a/kmymoney2/views/khomeview.cpp
+++ b/kmymoney2/views/khomeview.cpp
@@ -636,7 +636,7 @@ void KHomeView::showPaymentEntry(const MyMoneySchedule& sched, int cnt)
try {
MyMoneyAccount acc = sched.account();
- if(acc.id()) {
+ if(!acc.id().isEmpty()) {
MyMoneyTransaction t = sched.transaction();
// only show the entry, if it is still active
// FIXME clean old code
@@ -1177,7 +1177,7 @@ void KHomeView::slotOpenURL(const KURL &url, const KParts::URLArgs& /* args */)
} else if(view == "action") {
TDEMainWindow* mw = dynamic_cast<TDEMainWindow*>(tqApp->mainWidget());
TQ_CHECK_PTR(mw);
- TQTimer::singleShot(0, mw->actionCollection()->action( id ), TQT_SLOT(activate()));
+ TQTimer::singleShot(0, mw->actionCollection()->action(id.utf8()), TQT_SLOT(activate()));
} else if(view == VIEW_HOME) {
TQValueList<MyMoneyAccount> list;
@@ -1653,7 +1653,7 @@ void KHomeView::showCashFlowSummary()
}
MyMoneyAccount acc = (*sched_it).account();
- if(acc.id()) {
+ if(!acc.id().isEmpty()) {
MyMoneyTransaction transaction = (*sched_it).transaction();
// only show the entry, if it is still active
diff --git a/kmymoney2/views/kmymoneyview.cpp b/kmymoney2/views/kmymoneyview.cpp
index 696e09f..6932a1b 100644
--- a/kmymoney2/views/kmymoneyview.cpp
+++ b/kmymoney2/views/kmymoneyview.cpp
@@ -1150,7 +1150,7 @@ bool KMyMoneyView::saveFile(const KURL& url, const TQString& keyList)
throw new MYMONEYEXCEPTION(i18n("Unable to write changes to '%1'").arg(filename));
}
}
- chown(filename, static_cast<uid_t>(-1), gid);
+ chown(filename.local8Bit(), static_cast<uid_t>(-1), gid);
} else {
KTempFile tmpfile;
saveToLocalFile(tmpfile.file(), pWriter, plaintext, keyList);
diff --git a/kmymoney2/views/kreportsview.cpp b/kmymoney2/views/kreportsview.cpp
index fbadc58..386e56f 100644
--- a/kmymoney2/views/kreportsview.cpp
+++ b/kmymoney2/views/kreportsview.cpp
@@ -549,10 +549,10 @@ void KReportsView::slotOpenURL(const KURL &url, const KParts::URLArgs& /* args *
else if ( command == "delete" )
slotDelete();
else
- tqDebug("Unknown command '%s' in KReportsView::slotOpenURL()", static_cast<const char*>(command));
+ tqDebug(TQString("Unknown command '%1' in KReportsView::slotOpenURL()").arg(command));
} else {
- tqDebug("Unknown view '%s' in KReportsView::slotOpenURL()", view.latin1());
+ tqDebug(TQString("Unknown view '%1' in KReportsView::slotOpenURL()").arg(view));
}
}
diff --git a/kmymoney2/views/kscheduledlistitem.cpp b/kmymoney2/views/kscheduledlistitem.cpp
index c96fab7..3e30f8e 100644
--- a/kmymoney2/views/kscheduledlistitem.cpp
+++ b/kmymoney2/views/kscheduledlistitem.cpp
@@ -143,7 +143,7 @@ KScheduledListItem::KScheduledListItem(KScheduledListItem *parent, const MyMoney
else
setText(4, TDEGlobal::locale()->formatDate(schedule.adjustedNextDueDate(), true));
- setText(5, i18n(schedule.occurenceToString()));
+ setText(5, i18n(schedule.occurenceToString().utf8()));
setText(6, KMyMoneyUtils::paymentMethodToString(schedule.paymentType()));
}
catch (MyMoneyException *e)