From 25794f504692e5a36c490438814e9dfda8aaa2dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 29 May 2011 19:00:37 +0000 Subject: TQt4 port kchmviewer This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kchmviewer@1234150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/libchmfile/libchmfile.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'lib/libchmfile/libchmfile.cpp') diff --git a/lib/libchmfile/libchmfile.cpp b/lib/libchmfile/libchmfile.cpp index 7d13aaa..e88e37c 100644 --- a/lib/libchmfile/libchmfile.cpp +++ b/lib/libchmfile/libchmfile.cpp @@ -33,7 +33,7 @@ LCHMFile::~ LCHMFile( ) delete m_impl; } -bool LCHMFile::loadFile( const QString & archiveName ) +bool LCHMFile::loadFile( const TQString & archiveName ) { return m_impl->loadFile( archiveName ); } @@ -43,14 +43,14 @@ void LCHMFile::closeAll( ) m_impl->closeAll(); } -QString LCHMFile::title( ) const +TQString LCHMFile::title( ) const { return m_impl->title(); } -QString LCHMFile::homeUrl( ) const +TQString LCHMFile::homeUrl( ) const { - QString url = m_impl->homeUrl(); + TQString url = m_impl->homeUrl(); return url.isNull() ? "/" : url; } @@ -79,27 +79,27 @@ bool LCHMFile::parseIndex( QT34VECTOR< LCHMParsedEntry > * indexes ) const return m_impl->parseFileAndFillArray( m_impl->m_indexFile, indexes, true ); } -bool LCHMFile::getFileContentAsString( QString * str, const QString & url ) +bool LCHMFile::getFileContentAsString( TQString * str, const TQString & url ) { return m_impl->getFileContentAsString( str, url ); } -bool LCHMFile::getFileContentAsBinary( QByteArray * data, const QString & url ) +bool LCHMFile::getFileContentAsBinary( TQByteArray * data, const TQString & url ) { return m_impl->getFileContentAsBinary( data, url ); } -bool LCHMFile::enumerateFiles( QStringList * files ) +bool LCHMFile::enumerateFiles( TQStringList * files ) { return m_impl->enumerateFiles( files ); } -QString LCHMFile::getTopicByUrl( const QString & url ) +TQString LCHMFile::getTopicByUrl( const TQString & url ) { return m_impl->getTopicByUrl( url ); } -const QPixmap * LCHMFile::getBookIconPixmap( unsigned int imagenum ) +const TQPixmap * LCHMFile::getBookIconPixmap( unsigned int imagenum ) { return m_impl->getBookIconPixmap( imagenum ); } @@ -114,12 +114,12 @@ bool LCHMFile::setCurrentEncoding( const LCHMTextEncoding * encoding ) return m_impl->setCurrentEncoding( encoding ); } -QString LCHMFile::normalizeUrl( const QString & url ) const +TQString LCHMFile::normalizeUrl( const TQString & url ) const { return m_impl->normalizeUrl( url ); } -bool LCHMFile::getFileSize(unsigned int * size, const QString & url) +bool LCHMFile::getFileSize(unsigned int * size, const TQString & url) { return m_impl->getFileSize( size, url ); } -- cgit v1.2.3