mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
Removed unused objects & variables
svn path=/trunk/kdebase/kfind/; revision=243424
This commit is contained in:
parent
d223b4256e
commit
9942874153
|
@ -86,10 +86,6 @@ KfindDlg::KfindDlg(const KURL & url, QWidget *parent, const char *name)
|
|||
SLOT(addFile(const KFileItem*,const QString&)));
|
||||
connect(query, SIGNAL(result(int)), SLOT(slotResult(int)));
|
||||
aboutWin = new KAboutApplication(this, "about", true);
|
||||
|
||||
//dirlister=new KDirLister();
|
||||
//connect(dirlister, SIGNAL( deleteItem ( KFileItem* )), this, SLOT(slotDeleteItem(KFileItem*)));
|
||||
//connect(dirlister, SIGNAL( newItems ( const KFileItemList& )), this, SLOT(slotNewItems( const KFileItemList& )));
|
||||
dirwatch=NULL;
|
||||
}
|
||||
|
||||
|
@ -130,8 +126,6 @@ void KfindDlg::startSearch()
|
|||
enableButton(User2, true); // Enable "Stop"
|
||||
enableButton(User3, false); // Disable "Save..."
|
||||
|
||||
// dirlister->openURL(query->url());
|
||||
|
||||
if(dirwatch!=NULL)
|
||||
delete dirwatch;
|
||||
dirwatch=new KDirWatch();
|
||||
|
@ -142,11 +136,9 @@ void KfindDlg::startSearch()
|
|||
//Getting a list of all subdirs
|
||||
if(tabWidget->isSearchRecursive())
|
||||
{
|
||||
depth=0;
|
||||
QStringList subdirs=getAllSubdirs(query->url().path());
|
||||
for(QStringList::Iterator it = subdirs.begin(); it != subdirs.end(); ++it)
|
||||
dirwatch->addDir(*it,true);
|
||||
// dirlister->openURL(KURL(*it),true);
|
||||
dirwatch->addDir(*it,true);
|
||||
}
|
||||
|
||||
win->beginSearch(query->url());
|
||||
|
@ -290,9 +282,7 @@ QStringList KfindDlg::getAllSubdirs(QDir d)
|
|||
if((*it==".")||(*it==".."))
|
||||
continue;
|
||||
subdirs.append(d.path()+"/"+*it);
|
||||
depth++;
|
||||
subdirs+=getAllSubdirs(d.path()+"/"+*it);
|
||||
}
|
||||
|
||||
return subdirs;
|
||||
}
|
||||
|
|
|
@ -64,8 +64,6 @@ private:
|
|||
KStatusBar *mStatusBar;
|
||||
KDirLister *dirlister;
|
||||
KDirWatch *dirwatch;
|
||||
//If true, disable dirlister's newItems slot...
|
||||
int depth;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue