diff options
Diffstat (limited to 'tools/assistant/config.cpp')
-rw-r--r-- | tools/assistant/config.cpp | 28 |
1 files changed, 14 insertions, 14 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"]; } |