Logo Search packages:      
Sourcecode: karchiver version File versions  Download package

void KarchiveurApp::slotFindInThisArchive ( QString  name  )  [protected, slot]

find in this archive all items matching the name name

Definition at line 1559 of file karchiveur.cpp.

References view.

Referenced by KarchiveurApp().

                                                       {
      QListViewItem *vi;
      int k;

      kdDebug()<<QString("Find:%1*%2*").arg(name).arg(indexfind)<<endl;
      vi=view->firstChild();
      for(k=0;k<view->childCount();k++)
      {
            if((k>indexfind)&&(vi->text(0).contains(name)!=0))
            {
                  view->setCurrentItem(vi);
                  vi->setSelected(true);
                  indexfind=k;
                  return;
            }
            vi=vi->nextSibling();
      }

      KMessageBox::information(this, i18n("No more occurrences found!"), "karchiveur");
      indexfind=-1;
}


Generated by  Doxygen 1.6.0   Back to index