diff options
Diffstat (limited to 'quanta/treeviews/basetreeview.cpp')
-rw-r--r-- | quanta/treeviews/basetreeview.cpp | 20 |
1 files changed, 10 insertions, 10 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); |