diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
commit | 25794f504692e5a36c490438814e9dfda8aaa2dd (patch) | |
tree | 8061e6d27b5bc9042afdff177872779c4e8c9015 /lib/libchmfile/libchmfile.cpp | |
parent | 35ff2a942f63b5201c04f41c3097e61cdd7817e9 (diff) | |
download | kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.tar.gz kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.zip |
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
Diffstat (limited to 'lib/libchmfile/libchmfile.cpp')
-rw-r--r-- | lib/libchmfile/libchmfile.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
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 ); } |