summaryrefslogtreecommitdiffstats
path: root/parts/documentation/plugins/chm/docchmplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/documentation/plugins/chm/docchmplugin.cpp')
-rw-r--r--parts/documentation/plugins/chm/docchmplugin.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/parts/documentation/plugins/chm/docchmplugin.cpp b/parts/documentation/plugins/chm/docchmplugin.cpp
index 83263fce..21b07207 100644
--- a/parts/documentation/plugins/chm/docchmplugin.cpp
+++ b/parts/documentation/plugins/chm/docchmplugin.cpp
@@ -38,9 +38,9 @@ static const KDevPluginInfo data("docchmplugin");
typedef KDevGenericFactory<DocCHMPlugin> DocCHMPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libdocchmplugin, DocCHMPluginFactory(data) )
-DocCHMPlugin::DocCHMPlugin(TQObject* tqparent, const char* name, TQStringList // args
+DocCHMPlugin::DocCHMPlugin(TQObject* parent, const char* name, TQStringList // args
)
- :DocumentationPlugin(DocCHMPluginFactory::instance()->config(), tqparent, name)
+ :DocumentationPlugin(DocCHMPluginFactory::instance()->config(), parent, name)
{
setCapabilities(CustomDocumentationTitles); // | Index | FullTextSearch | ProjectDocumentation
autoSetup();
@@ -127,9 +127,9 @@ void DocCHMPlugin::createIndex(IndexBox* // index
}
-static KListViewItem* chainEnd(KListViewItem *tqparent) {
- if(tqparent == 0) return 0;
- KListViewItem* ret = dynamic_cast<KListViewItem*>(tqparent->firstChild());
+static KListViewItem* chainEnd(KListViewItem *parent) {
+ if(parent == 0) return 0;
+ KListViewItem* ret = dynamic_cast<KListViewItem*>(parent->firstChild());
if(ret == 0) return 0;
while(ret->nextSibling() != 0) {
ret = dynamic_cast<KListViewItem*>(ret->nextSibling());
@@ -163,11 +163,11 @@ void DocCHMPlugin::createTOC(DocumentationCatalogItem* item)
items.push_back(item);
for(TQStringList::Iterator it = lines.begin(); it != lines.end();) {
bool ok1 = true, ok2 = true;
- int tqparent = (*it).toInt(&ok1);
+ int parent = (*it).toInt(&ok1);
++it;
int current = (*it).toInt(&ok2);
++it;
- if(int(items.size()) != current || !ok1 || !ok2 || tqparent < 0 || tqparent >= int(items.size()) || current < 0 || current != int(items.size())) {
+ if(int(items.size()) != current || !ok1 || !ok2 || parent < 0 || parent >= int(items.size()) || current < 0 || current != int(items.size())) {
kdDebug(9002) << "DocCHMPlugin::createTOC error while parsing output of ioslave" << endl;
break;
}
@@ -178,9 +178,9 @@ void DocCHMPlugin::createTOC(DocumentationCatalogItem* item)
++it;
items.push_back(new DocumentationItem(
- DocumentationItem::Document, items[tqparent], chainEnd(items[tqparent]), decodeHTML(name)));
+ DocumentationItem::Document, items[parent], chainEnd(items[parent]), decodeHTML(name)));
items[current]->setURL(url);
- if(tqparent != 0) items[tqparent]->setType(DocumentationItem::Book);
+ if(parent != 0) items[parent]->setType(DocumentationItem::Book);
}