diff options
Diffstat (limited to 'quanta/treeviews')
-rw-r--r-- | quanta/treeviews/basetreeview.cpp | 20 | ||||
-rw-r--r-- | quanta/treeviews/doctreeview.cpp | 10 | ||||
-rw-r--r-- | quanta/treeviews/filestreeview.cpp | 20 | ||||
-rw-r--r-- | quanta/treeviews/projecttreeview.cpp | 18 | ||||
-rw-r--r-- | quanta/treeviews/scripttreeview.cpp | 4 | ||||
-rw-r--r-- | quanta/treeviews/servertreeview.cpp | 2 | ||||
-rw-r--r-- | quanta/treeviews/structtreetag.cpp | 10 | ||||
-rw-r--r-- | quanta/treeviews/structtreeview.cpp | 8 | ||||
-rw-r--r-- | quanta/treeviews/tagattributeitems.cpp | 4 | ||||
-rw-r--r-- | quanta/treeviews/tagattributetree.cpp | 2 | ||||
-rw-r--r-- | quanta/treeviews/templatestreeview.cpp | 24 | ||||
-rw-r--r-- | quanta/treeviews/uploadtreeview.cpp | 4 |
12 files changed, 63 insertions, 63 deletions
diff --git a/quanta/treeviews/basetreeview.cpp b/quanta/treeviews/basetreeview.cpp index 61a71be5..7145ab69 100644 --- a/quanta/treeviews/basetreeview.cpp +++ b/quanta/treeviews/basetreeview.cpp @@ -452,7 +452,7 @@ FileInfoDlg* BaseTreeView::addFileInfoPage(KPropertiesDialog* propDlg) fsize=qfile.size(); //html file size TQString mimetype = KMimeType::findByFileContent(nameForInfo)->name(); - if (mimetype.tqcontains("text")) + if (mimetype.contains("text")) { qfile.open(IO_ReadOnly); TQString imgname,imgpath; @@ -462,23 +462,23 @@ FileInfoDlg* BaseTreeView::addFileInfoPage(KPropertiesDialog* propDlg) { imgname = stream.readLine(); ct++; - position=imgname.tqfind("<img",0,false); //check for images + position=imgname.find("<img",0,false); //check for images if (position!=-1) { imgname.remove(0,position+4); - position=imgname.tqfind("src=",0,false); //extract images names + position=imgname.find("src=",0,false); //extract images names imgname.remove(0,position+4); if (imgname.startsWith("\"")) imgname.remove(0,1); if (imgname.startsWith("'")) imgname.remove(0,1); - position=imgname.tqfind(" ",0,false); + position=imgname.find(" ",0,false); if (position!=-1) imgname=imgname.left(position); - position=imgname.tqfind(">",0,false); + position=imgname.find(">",0,false); if (position!=-1) imgname=imgname.left(position); - position=imgname.tqfind("\"",0,false); + position=imgname.find("\"",0,false); if (position!=-1) imgname=imgname.left(position); - position=imgname.tqfind("'",0,false); + position=imgname.find("'",0,false); if (position!=-1) imgname=imgname.left(position); - if (!quantaFileProperties->imageList->tqfindItem(imgname,TQt::ExactMatch)) //check if image was already counted + if (!quantaFileProperties->imageList->findItem(imgname,TQt::ExactMatch)) //check if image was already counted { KURL v(KURL::fromPathOrURL( path ),imgname); imgpath=v.path(); @@ -499,7 +499,7 @@ FileInfoDlg* BaseTreeView::addFileInfoPage(KPropertiesDialog* propDlg) quantaFileProperties->imageSize->setText(i18n("Size of the included images: %1 bytes").tqarg(fimgsize)); quantaFileProperties->totalSize->setText(i18n("Total size with images: %1 bytes").tqarg(fsize+fimgsize)); } - else if (mimetype.tqcontains("image")) + else if (mimetype.contains("image")) { // assume it's an image file TQImage imagefile=TQImage(nameForInfo); quantaFileProperties->lineNum->setText(i18n("Image size: %1 x %2").tqarg(imagefile.width()).tqarg(imagefile.height())); @@ -565,7 +565,7 @@ void BaseTreeView::slotOpenWithApplication() void BaseTreeView::slotOpenWithActivated(int id) { - if (m_pluginIds.tqcontains(id)) + if (m_pluginIds.contains(id)) { QuantaPlugin *plugin = m_pluginIds[id]; plugin->unload(true); diff --git a/quanta/treeviews/doctreeview.cpp b/quanta/treeviews/doctreeview.cpp index 0541b25b..99f1f4bd 100644 --- a/quanta/treeviews/doctreeview.cpp +++ b/quanta/treeviews/doctreeview.cpp @@ -138,11 +138,11 @@ void DocTreeView::clickItem( TQListViewItem *) TQString * DocTreeView::contextHelp(const TQString &keyword) { - TQString word = keyword.mid(keyword.tqfind("|")); - if (contextHelpDict->tqfind(keyword)) - return contextHelpDict->tqfind(keyword); + TQString word = keyword.mid(keyword.find("|")); + if (contextHelpDict->find(keyword)) + return contextHelpDict->find(keyword); else - return contextHelpDict->tqfind(word); //to support old documentation packages + return contextHelpDict->find(word); //to support old documentation packages } void DocTreeView::slotDoubleClicked(TQListViewItem *item ) @@ -156,7 +156,7 @@ void DocTreeView::slotDoubleClicked(TQListViewItem *item ) void DocTreeView::slotAddProjectDoc(const KURL& url) { TQString path = url.path(); - int pos = path.tqfind("/doc/"); + int pos = path.find("/doc/"); path = path.mid(pos + 5); new DocItem(projectDocFolder, path, url.url()); } diff --git a/quanta/treeviews/filestreeview.cpp b/quanta/treeviews/filestreeview.cpp index 6aaca415..4008d408 100644 --- a/quanta/treeviews/filestreeview.cpp +++ b/quanta/treeviews/filestreeview.cpp @@ -59,7 +59,7 @@ FilesTreeView::FilesTreeView(KConfig *config, TQWidget *tqparent, const char *na { url = KURL(); QuantaCommon::setUrl(url, topStrList[i]); - if (!topURLList.tqcontains(url)) + if (!topURLList.contains(url)) { topURLList.append(url); if (i < topStrAliasList.count()) @@ -74,11 +74,11 @@ FilesTreeView::FilesTreeView(KConfig *config, TQWidget *tqparent, const char *na { url = KURL(); url.setPath("/"); - if (!topURLList.tqcontains(url)) + if (!topURLList.contains(url)) topURLList.append(url); url = KURL(); url.setPath(QExtFileInfo::homeDirPath() + "/"); - if (!topURLList.tqcontains(url)) + if (!topURLList.contains(url)) topURLList.append(url); } @@ -161,7 +161,7 @@ KFileTreeBranch* FilesTreeView::newBranch(const KURL& url) TQString s = url.fileName(); if (s.isEmpty()) s = "/"; - if (topURLAliases.tqcontains(url.url())) + if (topURLAliases.contains(url.url())) s = topURLAliases[url.url()]; s += " [" + url.prettyURL() + "]"; newBrnch = new BaseTreeBranch(this, url, s, SmallIcon(fileItem.iconName()), true); @@ -180,7 +180,7 @@ void FilesTreeView::slotMenu(KListView* listView, TQListViewItem *item, const TQ Q_UNUSED(listView); #ifdef ENABLE_CVSSERVICE KURL url = currentURL(); - if (Project::ref()->tqcontains(url)) + if (Project::ref()->contains(url)) CVSService::ref()->setRepository(Project::ref()->projectBaseURL().path()); else CVSService::ref()->setRepository(url.directory()); @@ -227,7 +227,7 @@ void FilesTreeView::slotMenu(KListView* listView, TQListViewItem *item, const TQ { m_folderMenu->changeItem( m_menuTop, i18n("&Add Folder to Top")); url.adjustPath(+1); - m_folderMenu->setItemVisible(m_menuTop, (topURLList.tqfindIndex(url) == -1)); + m_folderMenu->setItemVisible(m_menuTop, (topURLList.findIndex(url) == -1)); m_folderMenu->setItemVisible(m_reloadMenuId, false); } m_folderMenu->popup( point); @@ -251,7 +251,7 @@ void FilesTreeView::slotAddToTop() url.adjustPath(+1); if ( curItem != curItem->branch()->root() ) //it is not a top folder { // add - if (topURLList.tqfindIndex(url) == -1) + if (topURLList.findIndex(url) == -1) { topURLList.append(url); bool ok; @@ -277,7 +277,7 @@ void FilesTreeView::slotNewTopFolder() KURL url = KFileDialog::getExistingURL(TQString(), this, i18n("Choose Local or Remote Folder")); if (url.isEmpty()) return; url.adjustPath(+1); - if (topURLList.tqfindIndex(url) == -1) + if (topURLList.findIndex(url) == -1) { bool ok; TQString aliasName = KInputDialog::getText(i18n("Set Alias"), i18n("Alternative folder name:"), url.fileName(), &ok, this); @@ -313,13 +313,13 @@ void FilesTreeView::slotChangeAlias() url.adjustPath(+1); if ( curItem == curItem->branch()->root() ) //it is not a top folder { - if (topURLList.tqfindIndex(url) != -1) + if (topURLList.findIndex(url) != -1) { bool ok; TQString aliasName = KInputDialog::getText(i18n("Change Alias"), i18n("Alternative folder name:"), topURLAliases[url.url()], &ok, this); if (ok) { - topURLAliases.tqreplace(url.url(), aliasName); + topURLAliases.replace(url.url(), aliasName); removeBranch(curItem->branch()); newBranch(url); } diff --git a/quanta/treeviews/projecttreeview.cpp b/quanta/treeviews/projecttreeview.cpp index 21c3f345..8508b452 100644 --- a/quanta/treeviews/projecttreeview.cpp +++ b/quanta/treeviews/projecttreeview.cpp @@ -90,7 +90,7 @@ KFileTreeViewItem* ProjectTreeBranch::createTreeViewItem(KFileTreeViewItem *tqpa // we assume there are childs tvi->setExpandable(tvi->isDir()); if (urlList) { - tvi->setVisible(urlList->tqcontains(fileItem->url())); // only listelements + tvi->setVisible(urlList->contains(fileItem->url())); // only listelements } } } @@ -261,7 +261,7 @@ void ProjectTreeView::slotMenu(KListView *listView, TQListViewItem *item, const m_fileMenu->popup(point); } else { - if (m_documentFolderList.tqcontains(url)) + if (m_documentFolderList.contains(url)) m_folderMenu->setItemChecked(m_setDocumentRootId, true); else m_folderMenu->setItemChecked(m_setDocumentRootId, false); @@ -345,7 +345,7 @@ void ProjectTreeView::slotReloadTree( ProjectList *fileList, bool buildNewTree, for ( ; iter.current(); ++iter ) { item = dynamic_cast <KFileTreeViewItem*> (iter.current()); - item->setVisible(m_projectFiles->tqcontains(item->url()) || item == rootItem); + item->setVisible(m_projectFiles->contains(item->url()) || item == rootItem); } rootItem->setEnabled(true); } @@ -525,7 +525,7 @@ void ProjectTreeView::slotAlwaysUpload() KURL url = currentURL(); if (kftvi->isDir()) url.adjustPath(+1); - if (m_projectFiles->tqcontains(url) || url == m_projectBaseURL) + if (m_projectFiles->contains(url) || url == m_projectBaseURL) { emit changeUploadtqStatus(url, ProjectURL::AlwaysUpload); } @@ -539,7 +539,7 @@ void ProjectTreeView::slotNeverUpload() KURL url = currentURL(); if (kftvi->isDir()) url.adjustPath(+1); - if (m_projectFiles->tqcontains(url) || url == m_projectBaseURL) + if (m_projectFiles->contains(url) || url == m_projectBaseURL) { emit changeUploadtqStatus(url, ProjectURL::NeverUpload); } @@ -553,7 +553,7 @@ void ProjectTreeView::slotConfirmUpload() KURL url = currentURL(); if (kftvi->isDir()) url.adjustPath(+1); - if (m_projectFiles->tqcontains(url) || url == m_projectBaseURL) + if (m_projectFiles->contains(url) || url == m_projectBaseURL) { emit changeUploadtqStatus(url, ProjectURL::ConfirmUpload); } @@ -570,7 +570,7 @@ void ProjectTreeView::slotUploadMenuAboutToShow() KURL url = currentURL(); if (kftvi->isDir()) url.adjustPath(+1); - ProjectURL *proUrl = m_projectFiles->tqfind( url ); + ProjectURL *proUrl = m_projectFiles->find( url ); if (proUrl) { switch (proUrl->uploadtqStatus) @@ -603,7 +603,7 @@ void ProjectTreeView::slotChangeDocumentFoldertqStatus() KURL url = currentURL(); if (kftvi->isDir()) url.adjustPath(+1); - if (!m_documentFolderList.tqcontains(currentURL())) + if (!m_documentFolderList.contains(currentURL())) { m_documentFolderList.append(currentURL()); emit changeUploadtqStatus(url, ProjectURL::AlwaysUpload); @@ -618,7 +618,7 @@ void ProjectTreeView::slotChangeDocumentFoldertqStatus() bool ProjectTreeView::isDocumentFolder(const KURL &url) { - return (m_documentFolderList.tqcontains(url) > 0); + return (m_documentFolderList.contains(url) > 0); } diff --git a/quanta/treeviews/scripttreeview.cpp b/quanta/treeviews/scripttreeview.cpp index 1652cf18..55b36c81 100644 --- a/quanta/treeviews/scripttreeview.cpp +++ b/quanta/treeviews/scripttreeview.cpp @@ -224,8 +224,8 @@ void ScriptTreeView::slotAssignAction() TQString execApp = infoOptionValue(infoURL, "interpreter"); if (execApp.isEmpty()) execApp = "sh"; - url.setPath(url.path().tqreplace(locateLocal("data", resourceDir + "scripts/"), "%scriptdir/")); - url.setPath(url.path().tqreplace(qConfig.globalDataDir + resourceDir + "scripts/", "%scriptdir/")); + url.setPath(url.path().replace(locateLocal("data", resourceDir + "scripts/"), "%scriptdir/")); + url.setPath(url.path().replace(qConfig.globalDataDir + resourceDir + "scripts/", "%scriptdir/")); emit assignActionToScript(url, execApp); } } diff --git a/quanta/treeviews/servertreeview.cpp b/quanta/treeviews/servertreeview.cpp index 1543c37d..22c2407d 100644 --- a/quanta/treeviews/servertreeview.cpp +++ b/quanta/treeviews/servertreeview.cpp @@ -49,7 +49,7 @@ void ServerTreeViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, KURL relURL = baseURL; relURL.setPath(QExtFileInfo::toRelative(url(), branch()->url()).path()); KURL url = QExtFileInfo::toAbsolute(relURL, baseURL); - if ( !Project::ref()->tqcontains(url) ) + if ( !Project::ref()->contains(url) ) { TQFont f = p->font(); f.setItalic(true); diff --git a/quanta/treeviews/structtreetag.cpp b/quanta/treeviews/structtreetag.cpp index fbd41228..fb0573a4 100644 --- a/quanta/treeviews/structtreetag.cpp +++ b/quanta/treeviews/structtreetag.cpp @@ -111,7 +111,7 @@ StructTreeTag::StructTreeTag(StructTreeTag *tqparent, Node *a_node, const TQStri TQString qTagName = node->tag->dtd()->caseSensitive ? node->tag->name : node->tag->name.upper(); int line, col; node->tag->beginPos(line, col); - if (parentTQTag && !parentTQTag->childTags.tqcontains(qTagName) && + if (parentTQTag && !parentTQTag->childTags.contains(qTagName) && !parentTQTag->childTags.isEmpty()) { node->tag->write()->setErrorMark(line); @@ -143,7 +143,7 @@ StructTreeTag::StructTreeTag(StructTreeTag *tqparent, Node *a_node, const TQStri { title = tag->tagStr(); title = title.left(70).stripWhiteSpace(); - title.tqreplace( nbspRx," "); + title.replace( nbspRx," "); break; } case Tag::Comment: @@ -151,7 +151,7 @@ StructTreeTag::StructTreeTag(StructTreeTag *tqparent, Node *a_node, const TQStri setPixmap( 0, UserIcon("tag_comm") ); title = tag->tagStr(); title = title.left(70).stripWhiteSpace(); - title.tqreplace( nbspRx," "); + title.replace( nbspRx," "); break; } case Tag::ScriptTag: @@ -195,7 +195,7 @@ StructTreeTag::StructTreeTag(StructTreeTag *tqparent, Node *a_node, const TQStri title = a_title; } - title.tqreplace(newLineRx," "); + title.replace(newLineRx," "); setText(0, title); node->listItems.append(this); } @@ -213,5 +213,5 @@ StructTreeTag::StructTreeTag(StructTreeTag *tqparent, TQString a_title ) StructTreeTag::~StructTreeTag(){ if (node) - node->listItems.remove(node->listItems.tqfind(this)); + node->listItems.remove(node->listItems.find(this)); } diff --git a/quanta/treeviews/structtreeview.cpp b/quanta/treeviews/structtreeview.cpp index f2154208..c6c23fde 100644 --- a/quanta/treeviews/structtreeview.cpp +++ b/quanta/treeviews/structtreeview.cpp @@ -236,14 +236,14 @@ void StructTreeView::buildTree(Node *baseNode, int openLevel, bool groupOnly) for (TQValueList<GroupElement*>::ConstIterator it = currentNode->m_groupElements.constBegin(); it != currentNode->m_groupElements.constEnd(); ++it) { GroupElement *groupElement = (*it); - if (!groupIds.tqcontains(groupElement->group->name + dtd->name)) + if (!groupIds.contains(groupElement->group->name + dtd->name)) continue; StructTreeTag *groupItem = groups[groupIds[groupElement->group->name + dtd->name]]; TQListViewItem* insertAfter = 0L; TQListViewItem* insertUnder = groupItem; - if (groupItems.tqcontains(groupElement->group->name + groupElement->tag->name)) + if (groupItems.contains(groupElement->group->name + groupElement->tag->name)) insertUnder = groupItems[groupElement->group->name + groupElement->tag->name]; - if (lastItemInGroup.tqcontains(groupElement->group->name)) + if (lastItemInGroup.contains(groupElement->group->name)) insertAfter = lastItemInGroup[groupElement->group->name]; StructTreeTag *item = new StructTreeTag(static_cast<StructTreeTag*>(insertUnder), currentNode, groupElement->tag->name, insertAfter); @@ -979,7 +979,7 @@ void StructTreeView::setParsingDTDs(const TQStringList &parsingDTDList) if (dtdList[i] == dtdNickName) dtdMenu->setItemChecked(i, true); } - m_parsingDTDList.append(DTDs::ref()->tqfind(*it)); + m_parsingDTDList.append(DTDs::ref()->find(*it)); } } diff --git a/quanta/treeviews/tagattributeitems.cpp b/quanta/treeviews/tagattributeitems.cpp index 0d80311a..1483e98d 100644 --- a/quanta/treeviews/tagattributeitems.cpp +++ b/quanta/treeviews/tagattributeitems.cpp @@ -395,7 +395,7 @@ AttributeListItem::AttributeListItem(EditableTree* listView, TQListViewItem* tqp if (!attr->interface.isEmpty()) interface = attr->interface; TQString arguments = attr->arguments; - arguments.tqreplace("%tagname%", node->tag->name); + arguments.replace("%tagname%", node->tag->name); DCOPReply reply = QuantaCommon::callDCOPMethod(interface, attr->method, arguments); if (reply.isValid()) { @@ -434,7 +434,7 @@ void AttributeListItem::showEditor(int) Attribute *attr = qTag->attribute(text(0)); if (attr) { - index = attr->values.tqfindIndex(text(1)); + index = attr->values.findIndex(text(1)); } } if (index != -1) diff --git a/quanta/treeviews/tagattributetree.cpp b/quanta/treeviews/tagattributetree.cpp index 981aea04..d143caa7 100644 --- a/quanta/treeviews/tagattributetree.cpp +++ b/quanta/treeviews/tagattributetree.cpp @@ -333,7 +333,7 @@ void TagAttributeTree::setCurrentNode(Node *node) for (uint i = 0; i < qTag->commonGroups.count(); i++) { group = new TopLevelItem(this, group, i18n(qTag->commonGroups[i].utf8())); - AttributeList *groupAttrs = qTag->parentDTD->commonAttrs->tqfind(qTag->commonGroups[i]); + AttributeList *groupAttrs = qTag->parentDTD->commonAttrs->find(qTag->commonGroups[i]); for (uint j = 0; j < groupAttrs->count(); j++) { Attribute *attr = groupAttrs->at(j); diff --git a/quanta/treeviews/templatestreeview.cpp b/quanta/treeviews/templatestreeview.cpp index 2f061462..51928bcf 100644 --- a/quanta/treeviews/templatestreeview.cpp +++ b/quanta/treeviews/templatestreeview.cpp @@ -285,13 +285,13 @@ void TemplatesTreeView::slotMenu(KListView*, TQListViewItem *item, const TQPoint TQString menuText = ""; - if (m_dirInfo.mimeType.upper().tqcontains("TEXT")) + if (m_dirInfo.mimeType.upper().contains("TEXT")) menuText = i18n(textMenu.utf8()); - else if (m_dirInfo.mimeType.upper().tqcontains("FILE")) + else if (m_dirInfo.mimeType.upper().contains("FILE")) menuText = i18n(binaryMenu.utf8()); - else if (m_dirInfo.mimeType.upper().tqcontains("TEMPLATE")) + else if (m_dirInfo.mimeType.upper().contains("TEMPLATE")) menuText = i18n(docMenu.utf8()); - else if (m_dirInfo.mimeType.upper().tqcontains("SITE")) + else if (m_dirInfo.mimeType.upper().contains("SITE")) menuText = i18n(siteMenu.utf8()); if (menuText.isEmpty()) @@ -350,17 +350,17 @@ void TemplatesTreeView::slotSelectFile(TQListViewItem *item) if ( !kftvItem->isDir() ) { m_dirInfo = readDirInfo(); -/* if (m_dirInfo.mimeType.upper().tqcontains("SITE")) +/* if (m_dirInfo.mimeType.upper().contains("SITE")) { slotExtractSiteTemplate(); return; }*/ if (expandArchiv(kftvItem)) return; - if (m_dirInfo.mimeType.upper().tqcontains("TEXT")) + if (m_dirInfo.mimeType.upper().contains("TEXT")) slotInsertInDocument(); - else if (m_dirInfo.mimeType.upper().tqcontains("FILE")) + else if (m_dirInfo.mimeType.upper().contains("FILE")) slotInsertTag(); - else if (m_dirInfo.mimeType.upper().tqcontains("TEMPLATE")) + else if (m_dirInfo.mimeType.upper().contains("TEMPLATE")) slotNewDocument(); } } @@ -652,7 +652,7 @@ void TemplatesTreeView::slotProperties() TQString type = el.attribute("type", "tag"); if (type == "script") { - tmpStr = action->text().tqreplace(TQRegExp("\\&(?!\\&)"),""); + tmpStr = action->text().replace(TQRegExp("\\&(?!\\&)"),""); m_quantaProperties->actionCombo->insertItem(tmpStr); if (tmpStr == name) pos = j; @@ -783,7 +783,7 @@ void TemplatesTreeView::slotDragInsert(TQDropEvent *e) { if(m_dirInfo.mimeType == "text/all") // default to inserting in document { - if(!mimeType.tqcontains("text", false) && QuantaCommon::denyBinaryInsert(this) != KMessageBox::Yes) + if(!mimeType.contains("text", false) && QuantaCommon::denyBinaryInsert(this) != KMessageBox::Yes) { return; } @@ -798,7 +798,7 @@ void TemplatesTreeView::slotDragInsert(TQDropEvent *e) else if(m_dirInfo.mimeType == "template/all") { - if(!mimeType.tqcontains("text", false) && QuantaCommon::denyBinaryInsert(this) != KMessageBox::Yes) + if(!mimeType.contains("text", false) && QuantaCommon::denyBinaryInsert(this) != KMessageBox::Yes) { return; } @@ -911,7 +911,7 @@ KURL TemplatesTreeView::filterTemplate() TQDomElement el = action->data(); TQString type = el.attribute("type", "tag"); tmpStr = action->text(); - tmpStr.tqreplace(TQRegExp("\\&(?!\\&)"),""); + tmpStr.replace(TQRegExp("\\&(?!\\&)"),""); if (type == "script" && tmpStr == name) { filterAction = action; diff --git a/quanta/treeviews/uploadtreeview.cpp b/quanta/treeviews/uploadtreeview.cpp index 3b07b112..4318a096 100644 --- a/quanta/treeviews/uploadtreeview.cpp +++ b/quanta/treeviews/uploadtreeview.cpp @@ -276,7 +276,7 @@ TQListViewItem* UploadTreeView::findItem(const TQString& path ) TQString item = path; UploadTreeFolder *it = 0; int i; - while ( ( i = item.tqfind('/') ) >= 0 ) + while ( ( i = item.find('/') ) >= 0 ) { it = findFolder( it, item.left(i) ); if ( it == 0 ) @@ -306,7 +306,7 @@ UploadTreeFile* UploadTreeView::addItem(const KURL &a_url, const KFileItem& a_fi uint col = 0; UploadTreeFolder *it = 0; KURL u; - while ( ( i = item.tqfind('/', col) ) >= 0 ) + while ( ( i = item.find('/', col) ) >= 0 ) { if ( i!=0 ) { |