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 1 year ago
parent
commit
b1833cf50d
Signed by: SlavekB <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/bookwidget.cpp

+ 1
- 1
CMakeLists.txt View File

@@ -58,7 +58,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 "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )


+ 1
- 1
src/bookwidget.cpp View File

@@ -83,7 +83,7 @@ void BookWidget::openURL(const KURL & url)
m_stream.reset(new TQTextStream(&m_file));
m_textLines.reset(new TQStringList);
TQString name(encoding());
TQTextCodec *codec = TQTextCodec::codecForName(encoding()); // get the codec
TQTextCodec *codec = TQTextCodec::codecForName(encoding().latin1()); // get the codec
if (codec)
m_stream->setCodec(codec);
//show progress dialog


Loading…
Cancel
Save