#include "applyviewpropsjob.h"
#include "viewproperties.h"
-#include <assert.h>
-#include <kdebug.h>
-
ApplyViewPropsJob::ApplyViewPropsJob(const KUrl& dir,
const ViewProperties& viewProps) :
KIO::Job(),
void ApplyViewPropsJob::startNextJob(const KUrl& url)
{
- KIO::ListJob* listJob = KIO::listRecursive(url, false);
+ KIO::ListJob* listJob = KIO::listRecursive(url, KIO::HideProgressInfo);
connect(listJob, SIGNAL(entries(KIO::Job*, const KIO::UDSEntryList&)),
SLOT(slotEntries(KIO::Job*, const KIO::UDSEntryList&)));
addSubjob(listJob);
const KIO::UDSEntryList::ConstIterator end = list.end();
for (; it != end; ++it) {
const KIO::UDSEntry& entry = *it;
- const QString name = entry.stringValue(KIO::UDS_NAME);
+ const QString name = entry.stringValue(KIO::UDSEntry::UDS_NAME);
if ((name != ".") && (name != "..") && entry.isDir()) {
++m_progress;
KUrl url(m_dir);
url.addPath(name);
- assert(m_viewProps != 0);
+ Q_ASSERT(m_viewProps != 0);
ViewProperties props(url);
props.setDirProperties(*m_viewProps);