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>
pull/1/head
Slávek Banko 4 years ago
parent
commit
64c09a0ec1
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 2
      CMakeLists.txt
  2. 2
      src/magiclabel.cpp

2
CMakeLists.txt

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

2
src/magiclabel.cpp

@ -31,7 +31,7 @@ MagicLabel::MagicLabel(TQString s, bool translate)
transform();
if (translate)
mValue = i18n(mValue);
mValue = i18n(mValue.utf8());
}

Loading…
Cancel
Save