summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/mainwidget.cpp4
-rw-r--r--src/options.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9808f98..ed7a871 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,7 +58,7 @@ include( ConfigureChecks.cmake )
###### global compiler settings
-add_definitions( -DHAVE_CONFIG_H -UQT_NO_ASCII_CAST )
+add_definitions( -DHAVE_CONFIG_H )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
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;
}