]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/applyviewpropsjob.cpp
fix indentation
[dolphin.git] / src / applyviewpropsjob.cpp
index cddc4d653f8c655f0b93b9dbb60750f5090c00a1..ad9a22645f90fef4a9d1670e4ce561fd19c29bed 100644 (file)
@@ -28,7 +28,7 @@
 
 ApplyViewPropsJob::ApplyViewPropsJob(const KUrl& dir,
                                      const ViewProperties& viewProps) :
-    KIO::Job(false),
+    KIO::Job(),
     m_viewProps(0),
     m_progress(0),
     m_dir(dir)
@@ -56,7 +56,7 @@ void ApplyViewPropsJob::processNextItem()
 
 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);
@@ -68,8 +68,8 @@ void ApplyViewPropsJob::slotEntries(KIO::Job*, const KIO::UDSEntryList& list)
     const KIO::UDSEntryList::ConstIterator end = list.end();
     for (; it != end; ++it) {
         const KIO::UDSEntry& entry = *it;
-        const QString name = entry.stringValue(KIO::UDS_NAME);
-        if ((name != ".") && (name != ".." ) && entry.isDir()) {
+        const QString name = entry.stringValue(KIO::UDSEntry::UDS_NAME);
+        if ((name != ".") && (name != "..") && entry.isDir()) {
             ++m_progress;
 
             KUrl url(m_dir);
@@ -86,8 +86,8 @@ void ApplyViewPropsJob::slotEntries(KIO::Job*, const KIO::UDSEntryList& list)
 void ApplyViewPropsJob::slotResult(KJob* job)
 {
     if (job->error()) {
-        setError( job->error() );
-        setErrorText( job->errorText() );
+        setError(job->error());
+        setErrorText(job->errorText());
     }
     emitResult();
 }