X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/cd2e64154fd5446a7e19aff4cb147efe2f2ba31e..dd07a327:/src/kitemviews/private/kdirectorycontentscounterworker.cpp diff --git a/src/kitemviews/private/kdirectorycontentscounterworker.cpp b/src/kitemviews/private/kdirectorycontentscounterworker.cpp index eb456da25..57cf7b1bc 100644 --- a/src/kitemviews/private/kdirectorycontentscounterworker.cpp +++ b/src/kitemviews/private/kdirectorycontentscounterworker.cpp @@ -8,7 +8,7 @@ #include "kdirectorycontentscounterworker.h" // Required includes for countDirectoryContents(): -#ifdef Q_OS_WIN +#if defined(Q_OS_WIN) || defined(Q_OS_HAIKU) #include #else #include @@ -23,7 +23,7 @@ KDirectoryContentsCounterWorker::KDirectoryContentsCounterWorker(QObject *parent qRegisterMetaType(); } -#ifndef Q_OS_WIN +#if !defined(Q_OS_WIN) && !defined(Q_OS_HAIKU) void KDirectoryContentsCounterWorker::walkDir(const QString &dirPath, bool countHiddenFiles, uint allowedRecursiveLevel) { QByteArray text = dirPath.toLocal8Bit(); @@ -138,7 +138,7 @@ void KDirectoryContentsCounterWorker::countDirectoryContents(const QString &path { const bool countHiddenFiles = options & CountHiddenFiles; -#ifdef Q_OS_WIN +#if defined(Q_OS_WIN) || defined(Q_OS_HAIKU) QDir dir(path); QDir::Filters filters = QDir::NoDotAndDotDot | QDir::System | QDir::AllEntries; if (countHiddenFiles) { @@ -156,3 +156,5 @@ void KDirectoryContentsCounterWorker::countDirectoryContents(const QString &path m_stopping = false; Q_EMIT finished(); } + +#include "moc_kdirectorycontentscounterworker.cpp"