summaryrefslogtreecommitdiffstats
path: root/kmymoney2/kmymoney2.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-03-17 18:50:52 +0100
committerSlávek Banko <slavek.banko@axis.cz>2022-03-18 12:45:32 +0100
commit5e6c401557744fe5f9765471605cc793939fee1f (patch)
treefa1c9abe564d03a362378f8a7a6304e27baf9c33 /kmymoney2/kmymoney2.cpp
parenteeae53f59df4d79d0399c2217a165ff2fab754db (diff)
downloadkmymoney-5e6c401557744fe5f9765471605cc793939fee1f.tar.gz
kmymoney-5e6c401557744fe5f9765471605cc793939fee1f.zip
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kmymoney2/kmymoney2.cpp')
-rw-r--r--kmymoney2/kmymoney2.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kmymoney2/kmymoney2.cpp b/kmymoney2/kmymoney2.cpp
index 01dbc2c..d90f46c 100644
--- a/kmymoney2/kmymoney2.cpp
+++ b/kmymoney2/kmymoney2.cpp
@@ -503,7 +503,7 @@ void KMyMoney2App::dumpActions(void) const
TDEActionPtrList list = actionCollection()->actions();
TDEActionPtrList::const_iterator it;
for(it = list.begin(); it != list.end(); ++it) {
- std::cout << (*it)->name() << ": " << (*it)->text() << std::endl;
+ std::cout << (*it)->name() << ": " << (*it)->text().local8Bit() << std::endl;
}
}
@@ -855,7 +855,7 @@ KURL KMyMoney2App::selectFile(const TQString& title, const TQString& _path, cons
if(path.isEmpty())
path = TDEGlobalSettings::documentPath();
- KFileDialog* dialog = new KFileDialog(path, mask, this, title, true);
+ KFileDialog* dialog = new KFileDialog(path, mask, this, title.utf8(), true);
dialog->setMode(mode);
if(dialog->exec() == TQDialog::Accepted) {
@@ -873,7 +873,7 @@ void KMyMoney2App::slotFileOpen(void)
KFileDialog* dialog = new KFileDialog(TDEGlobalSettings::documentPath(),
i18n("%1|KMyMoney files\n%2|All files (*.*)").arg("*.kmy *.xml").arg("*"),
- this, i18n("Open File..."), true);
+ this, i18n("Open File...").utf8(), true);
dialog->setMode(KFile::File | KFile::ExistingOnly);
if(dialog->exec() == TQDialog::Accepted) {
@@ -1621,7 +1621,7 @@ void KMyMoney2App::slotGncImport(void)
KFileDialog* dialog = new KFileDialog(TDEGlobalSettings::documentPath(),
i18n("%1|Gnucash files\n%2|All files (*.*)").arg("*").arg("*"),
- this, i18n("Import Gnucash file..."), true);
+ this, i18n("Import Gnucash file...").utf8(), true);
dialog->setMode(KFile::File | KFile::ExistingOnly);
if(dialog->exec() == TQDialog::Accepted) {
@@ -1664,7 +1664,7 @@ void KMyMoney2App::slotStatementImport(void)
KFileDialog* dialog = new KFileDialog(TDEGlobalSettings::documentPath(),
i18n("%1|XML files\n%2|All files (*.*)").arg("*.xml").arg("*.*"),
- this, i18n("Import XML Statement..."), true);
+ this, i18n("Import XML Statement...").utf8(), true);
dialog->setMode(KFile::File | KFile::ExistingOnly);
if(dialog->exec() == TQDialog::Accepted)