Browse Source

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>
Slávek Banko 4 months ago
parent
commit
64c09a0ec1
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      CMakeLists.txt
  2. 1
    1
      src/magiclabel.cpp

+ 1
- 1
CMakeLists.txt View File

@@ -56,7 +56,7 @@ include( ConfigureChecks.cmake )
56 56
 
57 57
 ###### global compiler settings
58 58
 
59
-add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST )
59
+add_definitions( -DHAVE_CONFIG_H )
60 60
 
61 61
 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
62 62
 set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )

+ 1
- 1
src/magiclabel.cpp View File

@@ -31,7 +31,7 @@ MagicLabel::MagicLabel(TQString s, bool translate)
31 31
   transform();
32 32
 
33 33
   if (translate)
34
-    mValue = i18n(mValue);
34
+    mValue = i18n(mValue.utf8());
35 35
 }
36 36
 
37 37
 

Loading…
Cancel
Save