~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to apps/kfind/kquery.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi, Alessandro Ghersi, Harald Sitter, Jonathan Thomas
  • Date: 2009-10-03 03:45:08 UTC
  • mfrom: (1.1.33 upstream)
  • Revision ID: james.westby@ubuntu.com-20091003034508-ywdmnfa7ollb3ptk
Tags: 4:4.3.2-0ubuntu1
[ Alessandro Ghersi ]
* New upstream release
  - Bump build-deps

[ Harald Sitter ]
* Make Lintian happy about the konqueror maintainer scripts
* Add konsole maintainer scripts to register it as x-terminal-emulator
  alternative (LP: #278722)
* Add kubuntu_19_install_flash.diff using update-notifier-kde to recommend
  installation of flash plugin

[ Jonathan Thomas ]
* Bump replaces for konqueror on dolphin to (<< 4:4.2.85) (LP: #421742)

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
      
164
164
  m_insideCheckEntries=true;
165
165
  
166
 
  metaKeyRx=new QRegExp(m_metainfokey);
167
 
  metaKeyRx->setPatternSyntax( QRegExp::Wildcard );
 
166
  metaKeyRx = QRegExp(m_metainfokey);
 
167
  metaKeyRx.setPatternSyntax( QRegExp::Wildcard );
168
168
  
169
169
  m_foundFilesList.clear();
170
170
 
192
192
  if( m_foundFilesList.size() > 0 )
193
193
    emit foundFileList( m_foundFilesList );
194
194
  
195
 
  delete metaKeyRx;
196
 
  
197
195
  if (job==0)
198
196
    emit result(m_result);
199
197
      
203
201
/* List of files found using slocate */
204
202
void KQuery::slotListEntries( QStringList list )
205
203
{
206
 
  metaKeyRx=new QRegExp(m_metainfokey);
207
 
  metaKeyRx->setPatternSyntax( QRegExp::Wildcard );
 
204
  metaKeyRx = QRegExp(m_metainfokey);
 
205
  metaKeyRx.setPatternSyntax( QRegExp::Wildcard );
208
206
 
209
207
  QStringList::const_iterator it = list.constBegin();
210
208
  QStringList::const_iterator end = list.constEnd();
216
214
  if( m_foundFilesList.size() > 0 )
217
215
    emit foundFileList( m_foundFilesList );
218
216
      
219
 
  delete metaKeyRx;
220
217
}
221
218
 
222
219
/* Check if file meets the find's requirements*/
328
325
      metakeys = metadatas.supportedKeys();
329
326
      for (QStringList::const_iterator it = metakeys.constBegin(); it != metakeys.constEnd(); ++it )
330
327
      {
331
 
        if (!metaKeyRx->exactMatch(*it))
 
328
        if (!metaKeyRx.exactMatch(*it))
332
329
          continue;
333
330
        strmetakeycontent=metadatas.item(*it).value().toString();
334
331
        if(strmetakeycontent.indexOf(m_metainfo)!=-1)