summaryrefslogtreecommitdiffstats
path: root/tools/assistant
diff options
context:
space:
mode:
Diffstat (limited to 'tools/assistant')
-rw-r--r--tools/assistant/config.cpp28
-rw-r--r--tools/assistant/helpdialogimpl.cpp4
-rw-r--r--tools/assistant/index.cpp6
-rw-r--r--tools/assistant/main.cpp2
-rw-r--r--tools/assistant/mainwindow.ui.h6
-rw-r--r--tools/assistant/profile.cpp10
6 files changed, 28 insertions, 28 deletions
diff --git a/tools/assistant/config.cpp b/tools/assistant/config.cpp
index 83d0bdc..dbc823f 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 QString &profileFileName)
QFile 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::Qt320) {
- 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 QMap<QString,QString> &m, const QString &header )
{
- qDebug( header );
+ tqDebug( header );
QMap<QString,QString>::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 - " + ( (QStringList*) &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 - " + ( (QStringList*) &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
QString Config::assistantDocPath() const
{
return profil->props["assistantdocs"].isEmpty()
- ? QString( qInstallPathDocs() ) + "/html"
+ ? QString( tqInstallPathDocs() ) + "/html"
: profil->props["assistantdocs"];
}
diff --git a/tools/assistant/helpdialogimpl.cpp b/tools/assistant/helpdialogimpl.cpp
index ceee175..45de1d8 100644
--- a/tools/assistant/helpdialogimpl.cpp
+++ b/tools/assistant/helpdialogimpl.cpp
@@ -81,7 +81,7 @@ static bool verifyDirectory(const QString &str)
if (!dirInfo.exists())
return QDir().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()
{
QString dir = cacheFilesPath; // ### remove the last '/' ?
if (!verifyDirectory(cacheFilesPath)) {
- qWarning( "Failed to created assistant directory" );
+ tqWarning( "Failed to created assistant directory" );
return;
}
QString pname = "." + Config::configuration()->profileName();
diff --git a/tools/assistant/index.cpp b/tools/assistant/index.cpp
index 9e73ceb..c2190e6 100644
--- a/tools/assistant/index.cpp
+++ b/tools/assistant/index.cpp
@@ -158,7 +158,7 @@ void Index::parseDocument( const QString &filename, int docNum )
{
QFile file( filename );
if ( !file.open( IO_ReadOnly ) ) {
- qWarning( "can not open file " + filename );
+ tqWarning( "can not open file " + filename );
return;
}
@@ -327,7 +327,7 @@ QString Index::getDocumentTitle( const QString &fileName )
{
QFile file( fileName );
if ( !file.open( IO_ReadOnly ) ) {
- qWarning( "cannot open file " + fileName );
+ tqWarning( "cannot open file " + fileName );
return fileName;
}
QTextStream s( &file );
@@ -450,7 +450,7 @@ bool Index::searchForPattern( const QStringList &patterns, const QStringList &wo
{
QFile 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 0619909..aa5f3be 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();
QTranslator translator( 0 );
translator.load( QString("assistant_") + QTextCodec::locale(), resourceDir );
diff --git a/tools/assistant/mainwindow.ui.h b/tools/assistant/mainwindow.ui.h
index 75acd89..e5df018 100644
--- a/tools/assistant/mainwindow.ui.h
+++ b/tools/assistant/mainwindow.ui.h
@@ -412,7 +412,7 @@ void MainWindow::showLinkFromClient( const QString &link )
void MainWindow::showLink( const QString &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 QString &link )
void MainWindow::showLinks( const QStringList &links )
{
if ( links.size() == 0 ) {
- qWarning( "MainWindow::showLinks() - Empty link" );
+ tqWarning( "MainWindow::showLinks() - Empty link" );
return;
}
@@ -482,7 +482,7 @@ void MainWindow::timerEvent(QTimerEvent *e)
void MainWindow::showQtHelp()
{
- showLink( QString( qInstallPathDocs() ) + "/html/index.html" );
+ showLink( QString( tqInstallPathDocs() ) + "/html/index.html" );
}
void MainWindow::showSettingsDialog()
diff --git a/tools/assistant/profile.cpp b/tools/assistant/profile.cpp
index be83f2a..8d65754 100644
--- a/tools/assistant/profile.cpp
+++ b/tools/assistant/profile.cpp
@@ -45,7 +45,7 @@
Profile *Profile::createDefaultProfile( const QString &docPath )
{
- QString path = qInstallPathDocs();
+ QString path = tqInstallPathDocs();
if ( !docPath.isEmpty() )
path = docPath;
path = path + "/html/";
@@ -116,9 +116,9 @@ void Profile::removeDocFileEntry( const QString &docfile )
}
#ifdef ASSISTANT_DEBUG
- qDebug( "docs:\n - " + docs.join( "\n - " ) );
- qDebug( "titles:\n - " + titles.join( "\n - " ) );
- qDebug( "keys:\n - " + ( (QStringList*) &(dcfTitles.keys()) )->join( "\n - " ) );
- qDebug( "values:\n - " + ( (QStringList*) &(dcfTitles.values()) )->join( "\n - " ) );
+ tqDebug( "docs:\n - " + docs.join( "\n - " ) );
+ tqDebug( "titles:\n - " + titles.join( "\n - " ) );
+ tqDebug( "keys:\n - " + ( (QStringList*) &(dcfTitles.keys()) )->join( "\n - " ) );
+ tqDebug( "values:\n - " + ( (QStringList*) &(dcfTitles.values()) )->join( "\n - " ) );
#endif
}