summaryrefslogtreecommitdiffstats
path: root/libkdeedu/kdeeduui/kdeeduglossary.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-04 02:22:38 +0000
commit98a12d05a48814bec3870b9a6d5865475cfa1c95 (patch)
treea711801e47696fb0cf162abd7330e0b5b480ba39 /libkdeedu/kdeeduui/kdeeduglossary.cpp
parent421a1845137c7c396b5d03bce53237fcb149d602 (diff)
downloadtdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.tar.gz
tdeedu-98a12d05a48814bec3870b9a6d5865475cfa1c95.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1211429 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdeedu/kdeeduui/kdeeduglossary.cpp')
-rw-r--r--libkdeedu/kdeeduui/kdeeduglossary.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/libkdeedu/kdeeduui/kdeeduglossary.cpp b/libkdeedu/kdeeduui/kdeeduglossary.cpp
index 1b0902b1..2b6dab8f 100644
--- a/libkdeedu/kdeeduui/kdeeduglossary.cpp
+++ b/libkdeedu/kdeeduui/kdeeduglossary.cpp
@@ -41,25 +41,25 @@ Glossary::~Glossary()
bool Glossary::loadLayout( TQDomDocument &Document, const KURL& url )
{
- TQFile layoutFile( url.path() );
+ TQFile tqlayoutFile( url.path() );
- if (!layoutFile.exists())
+ if (!tqlayoutFile.exists())
{
- kdDebug() << "no such file: " << layoutFile.name() << endl;
+ kdDebug() << "no such file: " << tqlayoutFile.name() << endl;
return false;
}
- if (!layoutFile.open(IO_ReadOnly))
+ if (!tqlayoutFile.open(IO_ReadOnly))
return false;
///Check if document is well-formed
- if (!Document.setContent(&layoutFile))
+ if (!Document.setContent(&tqlayoutFile))
{
kdDebug() << "wrong xml" << endl;
- layoutFile.close();
+ tqlayoutFile.close();
return false;
}
- layoutFile.close();
+ tqlayoutFile.close();
return true;
}
@@ -100,8 +100,8 @@ void Glossary::fixImagePath()
for ( ; it != itEnd ; ++it )
{
- ( *it )->setDesc( ( *it )->desc().replace("[img]", firstpart ) );
- ( *it )->setDesc( ( *it )->desc().replace("[/img]", "\" />" ) );
+ ( *it )->setDesc( ( *it )->desc().tqreplace("[img]", firstpart ) );
+ ( *it )->setDesc( ( *it )->desc().tqreplace("[/img]", "\" />" ) );
}
}
@@ -136,15 +136,15 @@ TQValueList<GlossaryItem*> Glossary::readItems( TQDomDocument &itemDocument )
item->setName( i18n( nameNode.toElement( ).text().utf8() ) );
- item->setDesc( desc.replace("[b]", "<b>" ) );
- item->setDesc( item->desc().replace("[/b]", "</b>" ) );
- item->setDesc( item->desc().replace("[i]", "<i>" ) );
- item->setDesc( item->desc().replace("[/i]", "</i>" ) );
- item->setDesc( item->desc().replace("[sub]", "<sub>" ) );
- item->setDesc( item->desc().replace("[/sub]", "</sub>" ) );
- item->setDesc( item->desc().replace("[sup]", "<sup>" ) );
- item->setDesc( item->desc().replace("[/sup]", "</sup>" ) );
- item->setDesc( item->desc().replace("[br]", "<br />" ) );
+ item->setDesc( desc.tqreplace("[b]", "<b>" ) );
+ item->setDesc( item->desc().tqreplace("[/b]", "</b>" ) );
+ item->setDesc( item->desc().tqreplace("[i]", "<i>" ) );
+ item->setDesc( item->desc().tqreplace("[/i]", "</i>" ) );
+ item->setDesc( item->desc().tqreplace("[sub]", "<sub>" ) );
+ item->setDesc( item->desc().tqreplace("[/sub]", "</sub>" ) );
+ item->setDesc( item->desc().tqreplace("[sup]", "<sup>" ) );
+ item->setDesc( item->desc().tqreplace("[/sup]", "</sup>" ) );
+ item->setDesc( item->desc().tqreplace("[br]", "<br />" ) );
refNodeList = refNode.elementsByTagName( "refitem" );
for ( uint it = 0; it < refNodeList.count(); it++ )