summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-19 15:54:42 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-19 23:26:31 +0100
commit998c76a01a81629bb9701d75b3248d86bde68bad (patch)
tree0ecf92d499fbab421ee5cab78a0bfcd81e6caa7b /src
parent2bdb83034ae18b6d815d62af89445abe21065bb1 (diff)
downloadpotracegui-998c76a01a81629bb9701d75b3248d86bde68bad.tar.gz
potracegui-998c76a01a81629bb9701d75b3248d86bde68bad.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> (cherry picked from commit cbcf7d45291c2efe12c1de29fbf1ec11163536e4)
Diffstat (limited to 'src')
-rw-r--r--src/mainwidget.cpp4
-rw-r--r--src/options.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwidget.cpp b/src/mainwidget.cpp
index 7c29c3c..3f081b6 100644
--- a/src/mainwidget.cpp
+++ b/src/mainwidget.cpp
@@ -105,7 +105,7 @@ MainWidget::~MainWidget() {
}
void MainWidget::fileOpen() {
- KFileDialog d(TQString(),KImageIO::pattern(),this,i18n("Select an image"),true);
+ KFileDialog d(TQString(),KImageIO::pattern(),this,i18n("Select an image").utf8(),true);
d.exec();
if(d.result()==TQDialog::Accepted)
@@ -162,7 +162,7 @@ void MainWidget::fileSave() {
ofstream out(m_outputFilename.local8Bit());
if(!in || !out)
{
- emit signalChangeStatusbar(i18n(i18n("Error while saving file")));
+ emit signalChangeStatusbar(i18n("Error while saving file"));
return;
}
emit signalChangeStatusbar(i18n("Saving %1...").arg(m_outputFilename));
diff --git a/src/options.cpp b/src/options.cpp
index 6945c11..e59c764 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -81,7 +81,7 @@ void Options::defaultOptions(){
void Options::debug() {
for(map<TQString,TQString>::iterator i=options.begin(); i!=options.end(); i++)
- cout << (*i).first << "=" << (*i).second << endl;
+ cout << (*i).first.local8Bit() << "=" << (*i).second.local8Bit() << endl;
}