* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
#include "applyviewpropsjob.h"
#include "viewproperties.h"
***************************************************************************/
#include "applyviewpropsjob.h"
#include "viewproperties.h"
#include <kdebug.h>
ApplyViewPropsJob::ApplyViewPropsJob(const KUrl& dir,
const ViewProperties& viewProps) :
#include <kdebug.h>
ApplyViewPropsJob::ApplyViewPropsJob(const KUrl& dir,
const ViewProperties& viewProps) :
connect(listJob, SIGNAL(entries(KIO::Job*, const KIO::UDSEntryList&)),
SLOT(slotEntries(KIO::Job*, const KIO::UDSEntryList&)));
addSubjob(listJob);
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 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()) {
- props.setViewMode(m_viewProps->viewMode());
- props.setShowHiddenFilesEnabled(m_viewProps->isShowHiddenFilesEnabled());
- props.setSorting(m_viewProps->sorting());
- props.setSortOrder(m_viewProps->sortOrder());
+ props.setDirProperties(*m_viewProps);