summaryrefslogtreecommitdiffstats
path: root/src/mainwidget.cpp
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 15:54:42 +0100
commitcbcf7d45291c2efe12c1de29fbf1ec11163536e4 (patch)
treeddbd15c7b37050c1aebd42cff004cf7507b1b020 /src/mainwidget.cpp
parent500e1425cfe05b780c27c0a66e1a63a69a4597c1 (diff)
downloadpotracegui-cbcf7d45291c2efe12c1de29fbf1ec11163536e4.tar.gz
potracegui-cbcf7d45291c2efe12c1de29fbf1ec11163536e4.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 'src/mainwidget.cpp')
-rw-r--r--src/mainwidget.cpp4
1 files changed, 2 insertions, 2 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));