Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ad29ff51 authored by Ben Cooksley's avatar Ben Cooksley

Use the correct defines for a Qt 5 world

(cherry picked from commit 1117c94c)
parent 60fd541c
......@@ -30,7 +30,7 @@
#include <QDebug>
// Required includes for subDirectoriesCount():
#ifdef Q_WS_WIN
#ifdef Q_OS_WIN
#include <QtCore/QDir>
#else
#include <dirent.h>
......@@ -449,7 +449,7 @@ QVariantMap FileMetaDataProvider::data() const
int FileMetaDataProvider::subDirectoriesCount(const QString& path)
{
#ifdef Q_WS_WIN
#ifdef Q_OS_WIN
QDir dir(path);
return dir.entryList(QDir::AllEntries|QDir::NoDotAndDotDot|QDir::System).count();
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment