diff options
Diffstat (limited to 'tools/assistant')
-rw-r--r-- | tools/assistant/config.cpp | 28 | ||||
-rw-r--r-- | tools/assistant/helpdialogimpl.cpp | 4 | ||||
-rw-r--r-- | tools/assistant/index.cpp | 6 | ||||
-rw-r--r-- | tools/assistant/main.cpp | 2 | ||||
-rw-r--r-- | tools/assistant/mainwindow.ui.h | 6 | ||||
-rw-r--r-- | tools/assistant/profile.cpp | 10 |
6 files changed, 28 insertions, 28 deletions
diff --git a/tools/assistant/config.cpp b/tools/assistant/config.cpp index ad7e7edda..4bdc7f38b 100644 --- a/tools/assistant/config.cpp +++ b/tools/assistant/config.cpp @@ -57,7 +57,7 @@ Config::Config() if( !static_configuration ) { static_configuration = this; } else { - qWarning( "Multiple configurations not allowed!" ); + tqWarning( "Multiple configurations not allowed!" ); } } @@ -74,23 +74,23 @@ Config *Config::loadConfig(const TQString &profileFileName) TQFile file(profileFileName); if (!file.exists()) { - qWarning( "File does not exist: " + profileFileName ); + tqWarning( "File does not exist: " + profileFileName ); return 0; } DocuParser *parser = DocuParser::createParser( profileFileName ); if (!parser) { - qWarning( "Failed to create parser for file: " + profileFileName ); + tqWarning( "Failed to create parser for file: " + profileFileName ); return 0; } if (parser->parserVersion() < DocuParser::TQt320) { - qWarning( "File does not contain profile information" ); + tqWarning( "File does not contain profile information" ); return 0; } DocuParser320 *profileParser = static_cast<DocuParser320*>(parser); parser->parse(&file); config->profil = profileParser->profile(); if (!config->profil) { - qWarning( "Config::loadConfig(), no profile in: " + profileFileName ); + tqWarning( "Config::loadConfig(), no profile in: " + profileFileName ); return 0; } config->profil->setProfileType(Profile::UserProfile); @@ -180,10 +180,10 @@ void Config::saveSettings() #ifdef ASSISTANT_DEBUG static void dumpmap( const TQMap<TQString,TQString> &m, const TQString &header ) { - qDebug( header ); + tqDebug( header ); TQMap<TQString,TQString>::ConstIterator it = m.begin(); while (it != m.end()) { - qDebug( " " + it.key() + ":\t\t" + *it ); + tqDebug( " " + it.key() + ":\t\t" + *it ); ++it; } } @@ -231,7 +231,7 @@ void Config::loadDefaultProfile() dumpmap( profil->indexPages, "IndexPages" ); dumpmap( profil->imageDirs, "ImageDirs" ); dumpmap( profil->dcfTitles, "dcfTitles" ); - qDebug( "Docfiles: \n " + profil->docs.join( "\n " ) ); + tqDebug( "Docfiles: \n " + profil->docs.join( "\n " ) ); #endif } @@ -264,11 +264,11 @@ void Config::saveProfile( Profile *profile ) settings.writeEntry( profKey + "ImageDirs", imgDirs ); #if ASSISTANT_DEBUG - qDebug( "Titles:\n - " + ( (TQStringList*) &titles )->join( "\n - " ) ); - qDebug( "Docfiles:\n - " + dcfs.join( "\n - " ) ); - qDebug( "IndexPages:\n - " + indexes.join( "\n - " ) ); - qDebug( "DocIcons:\n - " + icons.join( "\n - " ) ); - qDebug( "ImageDirs:\n - " + imgDirs.join( "\n - " ) ); + tqDebug( "Titles:\n - " + ( (TQStringList*) &titles )->join( "\n - " ) ); + tqDebug( "Docfiles:\n - " + dcfs.join( "\n - " ) ); + tqDebug( "IndexPages:\n - " + indexes.join( "\n - " ) ); + tqDebug( "DocIcons:\n - " + icons.join( "\n - " ) ); + tqDebug( "ImageDirs:\n - " + imgDirs.join( "\n - " ) ); #endif } @@ -374,6 +374,6 @@ bool Config::sideBarHidden() const TQString Config::assistantDocPath() const { return profil->props["assistantdocs"].isEmpty() - ? TQString( qInstallPathDocs() ) + "/html" + ? TQString( tqInstallPathDocs() ) + "/html" : profil->props["assistantdocs"]; } diff --git a/tools/assistant/helpdialogimpl.cpp b/tools/assistant/helpdialogimpl.cpp index adf39f2fe..abce3ae84 100644 --- a/tools/assistant/helpdialogimpl.cpp +++ b/tools/assistant/helpdialogimpl.cpp @@ -81,7 +81,7 @@ static bool verifyDirectory(const TQString &str) if (!dirInfo.exists()) return TQDir().mkdir(str); if (!dirInfo.isDir()) { - qWarning("'%s' exists but is not a directory", str.latin1()); + tqWarning("'%s' exists but is not a directory", str.latin1()); return FALSE; } return TRUE; @@ -268,7 +268,7 @@ void HelpDialog::removeOldCacheFiles() { TQString dir = cacheFilesPath; // ### remove the last '/' ? if (!verifyDirectory(cacheFilesPath)) { - qWarning( "Failed to created assistant directory" ); + tqWarning( "Failed to created assistant directory" ); return; } TQString pname = "." + Config::configuration()->profileName(); diff --git a/tools/assistant/index.cpp b/tools/assistant/index.cpp index 24372feed..785f27bc6 100644 --- a/tools/assistant/index.cpp +++ b/tools/assistant/index.cpp @@ -158,7 +158,7 @@ void Index::parseDocument( const TQString &filename, int docNum ) { TQFile file( filename ); if ( !file.open( IO_ReadOnly ) ) { - qWarning( "can not open file " + filename ); + tqWarning( "can not open file " + filename ); return; } @@ -327,7 +327,7 @@ TQString Index::getDocumentTitle( const TQString &fileName ) { TQFile file( fileName ); if ( !file.open( IO_ReadOnly ) ) { - qWarning( "cannot open file " + fileName ); + tqWarning( "cannot open file " + fileName ); return fileName; } TQTextStream s( &file ); @@ -450,7 +450,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList & { TQFile file( fileName ); if ( !file.open( IO_ReadOnly ) ) { - qWarning( "cannot open file " + fileName ); + tqWarning( "cannot open file " + fileName ); return FALSE; } diff --git a/tools/assistant/main.cpp b/tools/assistant/main.cpp index 64bb8ee98..8954709cd 100644 --- a/tools/assistant/main.cpp +++ b/tools/assistant/main.cpp @@ -286,7 +286,7 @@ int main( int argc, char ** argv ) } if( resourceDir.isNull() ) - resourceDir = qInstallPathTranslations(); + resourceDir = tqInstallPathTranslations(); TQTranslator translator( 0 ); translator.load( TQString("assistant_") + TQTextCodec::locale(), resourceDir ); diff --git a/tools/assistant/mainwindow.ui.h b/tools/assistant/mainwindow.ui.h index d9847b8df..662f890cb 100644 --- a/tools/assistant/mainwindow.ui.h +++ b/tools/assistant/mainwindow.ui.h @@ -412,7 +412,7 @@ void MainWindow::showLinkFromClient( const TQString &link ) void MainWindow::showLink( const TQString &link ) { if( link.isEmpty() ) { - qWarning( "The link is empty!" ); + tqWarning( "The link is empty!" ); } int find = link.find( '#' ); @@ -441,7 +441,7 @@ void MainWindow::showLink( const TQString &link ) void MainWindow::showLinks( const TQStringList &links ) { if ( links.size() == 0 ) { - qWarning( "MainWindow::showLinks() - Empty link" ); + tqWarning( "MainWindow::showLinks() - Empty link" ); return; } @@ -482,7 +482,7 @@ void MainWindow::timerEvent(TQTimerEvent *e) void MainWindow::showTQtHelp() { - showLink( TQString( qInstallPathDocs() ) + "/html/index.html" ); + showLink( TQString( tqInstallPathDocs() ) + "/html/index.html" ); } void MainWindow::showSettingsDialog() diff --git a/tools/assistant/profile.cpp b/tools/assistant/profile.cpp index 231520eef..d7634646e 100644 --- a/tools/assistant/profile.cpp +++ b/tools/assistant/profile.cpp @@ -45,7 +45,7 @@ Profile *Profile::createDefaultProfile( const TQString &docPath ) { - TQString path = qInstallPathDocs(); + TQString path = tqInstallPathDocs(); if ( !docPath.isEmpty() ) path = docPath; path = path + "/html/"; @@ -116,9 +116,9 @@ void Profile::removeDocFileEntry( const TQString &docfile ) } #ifdef ASSISTANT_DEBUG - qDebug( "docs:\n - " + docs.join( "\n - " ) ); - qDebug( "titles:\n - " + titles.join( "\n - " ) ); - qDebug( "keys:\n - " + ( (TQStringList*) &(dcfTitles.keys()) )->join( "\n - " ) ); - qDebug( "values:\n - " + ( (TQStringList*) &(dcfTitles.values()) )->join( "\n - " ) ); + tqDebug( "docs:\n - " + docs.join( "\n - " ) ); + tqDebug( "titles:\n - " + titles.join( "\n - " ) ); + tqDebug( "keys:\n - " + ( (TQStringList*) &(dcfTitles.keys()) )->join( "\n - " ) ); + tqDebug( "values:\n - " + ( (TQStringList*) &(dcfTitles.values()) )->join( "\n - " ) ); #endif } |